parent
967492736b
commit
1f77ef069d
|
@ -72,7 +72,10 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
|
||||||
protected function getPurifier()
|
protected function getPurifier()
|
||||||
{
|
{
|
||||||
if (self::$purifier === null) {
|
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 = HTMLPurifier_Config::createDefault();
|
||||||
$config->set('Core.EscapeNonASCIICharacters', true);
|
$config->set('Core.EscapeNonASCIICharacters', true);
|
||||||
$config->set('HTML.Allowed', 'p,br,b,a[href],i,table,tr,td[colspan],div[class]');
|
$config->set('HTML.Allowed', 'p,br,b,a[href],i,table,tr,td[colspan],div[class]');
|
||||||
|
|
Loading…
Reference in New Issue