If you really want to do this, you can edit the file /inc/utils.inc.php Add the line in red, and save.
// HTML Purifier plugin
global $oHtmlPurifier;
require_once( BX_DIRECTORY_PATH_PLUGINS . 'htmlpurifier/HTMLPurifier.standalone.php' );
if (!isset($oHtmlPurifier)) {
HTMLPurifier_Bootstrap::registerAutoload();
$oConfig = HTMLPurifier_Config::createDefault();
$oConfig->set('Filter.YouTube', true);
$oConfig->set('URI.DisableExternal', 'true');
$oConfig->set('HTML.SafeObject', 'true');
$oConfig->set('Output.FlashCompat', 'true');
$oConfig->set('HTML.FlashAllowFullScreen', 'true');
$oConfig->set('Filter.Custom', array (new HTMLPurifier_Filter_Vimeo(), new HTMLPurifier_Filter_LocalMovie()));
$oConfig->set('HTML.DefinitionID', '1');
$oDef = $oConfig->getHTMLDefinition(true);
$oDef->addAttribute('a', 'target', 'Enum#_blank,_self,_target,_top');
$oHtmlPurifier = new HTMLPurifier($oConfig);
}
return $oHtmlPurifier->purify($val);
}
Understand though, if you do this, No links OR images outside of your domain will be allowed. You can give it a try to see if it's what you want
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.