From be6edbc0d650fd1b28d35255c28a6fa1079f1dc6 Mon Sep 17 00:00:00 2001 From: Christian Fowler Date: Wed, 2 Jun 2010 14:50:52 +0000 Subject: comment code to create custom html definition to allow target attributes --- plugins/filter.htmlpurifier.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/plugins/filter.htmlpurifier.php b/plugins/filter.htmlpurifier.php index 3064854..ef173f1 100644 --- a/plugins/filter.htmlpurifier.php +++ b/plugins/filter.htmlpurifier.php @@ -1,6 +1,6 @@ set( 'HTML.DefinitionID', BIT_ROOT_PATH ); -$config->set('HTML.DefinitionRev', 1); -$config->set('Cache.DefinitionImpl', null); // remove this later! + // Necessary setup for custom configuration I think. http://htmlpurifier.org/docs/enduser-customize.html + //$config->set( 'HTML.DefinitionID', BIT_ROOT_PATH ); + //$config->set('HTML.DefinitionRev', 1); + //$config->set('Cache.DefinitionImpl', null); // remove this later! // Set the cache path @@ -175,8 +176,8 @@ $config->set('Cache.DefinitionImpl', null); // remove this later! $css->info['left'] = new HTMLPurifier_AttrDef_CSS_Composite(array( new HTMLPurifier_AttrDef_CSS_Length())); $css->info['bottom'] = new HTMLPurifier_AttrDef_CSS_Composite(array( new HTMLPurifier_AttrDef_CSS_Length())); $css->info['right'] = new HTMLPurifier_AttrDef_CSS_Composite(array( new HTMLPurifier_AttrDef_CSS_Length())); -$def =& $config->getHTMLDefinition(); -$def->addAttribute('a', 'target', 'Enum#_blank,_self,_target,_top'); +//$def =& $config->getHTMLDefinition(); +//$def->addAttribute('a', 'target', 'Enum#_blank,_self,_target,_top'); } else { if ($gBitSystem->getConfig('htmlpure_disable_extern') == 'y') { $config->set('URI.DisableExternal', true); -- cgit v1.3