problem about htmlpurifier-Collection of common programming errors


  • user1032531
    php oop htmlpurifier
    Is it possible to take the below original code, and wrap it in a new class so I may simply create $filter = new myPurifier(); and then use $output = $filter->purify($input);? At the bottom of this post, you will see my failed attempt to do so. Thanksoriginal code:include_once(‘htmlpurifier/library/HTMLPurifier.auto.php’);$config = HTMLPurifier_Config::createDefault(); $config->set(‘Core’, ‘Encoding’, ‘UTF-8’); $config->set(‘HTML’, ‘Doctype’, ‘HTML 4.01 Transitional’);if (defined(‘PURIF

  • TaG
    php htmlpurifier
    I’m trying to install HTML Purifier http://htmlpurifier.org/ but I get the following error Undefined variable: dirty_html. I was wondering how can I fix this problem?Here is the PHP code.require_once ‘../../htmlpurifier/library/HTMLPurifier.auto.php’;$config = HTMLPurifier_Config::createDefault();$config->set(‘Core.Encoding’, ‘UTF-8’); // replace with your encoding$config->set(‘HTML.Doctype’, ‘XHTML 1.0 Strict’); // replace with your doctype$purifier = new HTMLPurifier($config);$clean_html

Web site is in building

I discovery a place to host code、demo、 blog and websites.
Site access is fast but not money