Skip to content

Commit

Permalink
Use HTMLPurifier from the include path
Browse files Browse the repository at this point in the history
refs #6165
refs #6166
  • Loading branch information
lippserd committed Nov 13, 2014
1 parent 9674927 commit 1f77ef0
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -72,7 +72,10 @@ protected function fixLinks($html)
protected function getPurifier()
{
if (self::$purifier === null) {
require_once 'IcingaVendor/htmlpurifier-4.6.0-lite/library/HTMLPurifier.auto.php';
require_once 'HTMLPurifier/Bootstrap.php';
require_once 'HTMLPurifier/HTMLPurifier.php';
require_once 'HTMLPurifier/HTMLPurifier.autoload.php';

$config = HTMLPurifier_Config::createDefault();
$config->set('Core.EscapeNonASCIICharacters', true);
$config->set('HTML.Allowed', 'p,br,b,a[href],i,table,tr,td[colspan],div[class]');
Expand Down

0 comments on commit 1f77ef0

Please sign in to comment.