Posted 10 July 2010 - 04:24 AM
Posted 10 July 2010 - 05:04 AM
Posted 11 July 2010 - 11:46 AM
Posted 11 July 2010 - 01:32 PM
$p = new CHtmlPurifier(); $p->options = array('URI.AllowedSchemes'=>array( 'http' => true, 'https' => true, 'mailto' => true, 'ftp' => true, 'nntp' => true, 'news' => true, ) ); $text = $p->purify($text);
Will add this to API docs for next release.
Posted 12 July 2010 - 05:34 AM
there is an extension that accommodates the use of htmlpurifier however its been behaving very unpredictably. I turned on $_POST purifying and now my posts don't work. I will try to directly use samdark's example. Thanks for that samdark.