HTMLPurifier config error
I'm trying to set some configurations for HTMLPurifier, and everything works on my dev machine, but on test, it fails.
with the error Class 'HTMLPurifier_config' not found. but if I remove config, it runs no problem. I'm using HTMLP开发者_开发技巧urifier 4.0.0
$config=HTMLPurifier_config::createDefault();
$config->set('AutoFormat','AutoParagraph', true);
$config->set('AutoFormat','Linkify', true);
$purifier = new HTMLPurifier($config);
I am loading HTMLPurifier with HTMLPurifier.auto.php, but as I said, this is working in dev, but not testing.
config needs to be capitalized.
精彩评论