PluginOutput: preserve <a target="_blank">

refs #11267
This commit is contained in:
Alexander A. Klimov 2016-06-02 12:38:17 +02:00
parent 4a78fa6a66
commit f75925b550
1 changed files with 2 additions and 1 deletions

View File

@ -105,7 +105,8 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
$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]');
$config->set('HTML.Allowed', 'p,br,b,a[href|target],i,table,tr,td[colspan],div,*[class]');
$config->set('Attr.AllowedFrameTargets', array('_blank'));
// This avoids permission problems:
// $config->set('Core.DefinitionCache', null);
$config->set('Cache.DefinitionImpl', null);