开发者

HTMLPurifier config error

开发者 https://www.devze.com 2023-01-02 09:21 出处:网络
I\'m trying to set some configurations for HTMLPurifier, and everything works on my dev machine, but on test, it fails.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消