Re: TikiWiki 1.10, HTML Purifier, and target="_blank"
Modified code to allow target="_blank":
require "HTMLPurifier.auto.php";
$config = HTMLPurifier_Config::createDefault();
$config->set('HTML', 'DefinitionID', 'allow attribute target');
$config->set('HTML', 'DefinitionRev', 1);
$config->set('HTML', 'Allowed', 'a[href|title|target]');
$def =& $config->getHTMLDefinition(true);
$def->addAttribute('a', 'target', 'Enum#_blank,_self,_target,_top');
$purifier = new HTMLPurifier($config);
$edit_data = $purifier->purify($edit_data);
Make sure you notice that the "$purifier = new HTMLPurifier();" line changed to: "$purifier = new HTMLPurifier($config);"
This change also stops the "title=" from being stripped.
This may not be the best solution. If someone finds a better one, please post it. Thanks.