html_purifier_config_setup
Added in version 2.7.
Usage
Alters the configuration settings for the HTMLPurifier library.
Value
HTMLPurifier_Config$purifierConfigThe config object for HTMLPurifier
Arguments
arraydefaultsThe default configuration keys (these have already been set to the passed config object)
arrayallowedHtmlElementsList of user-configured enabled elements
arrayallowedHtmlAttributesList of user-configured enabled attributes
Examples
Force a prefix on all user-provided id attributes (for other options see the HTMLPurifier
documentation pages linked below:
class MyPlugin extends :php:class:`Omeka_Plugin_AbstractPlugin`
{
protected $_filters = array('html_purifier_config_setup');
public filterHtmlPurifierConfigSetup($purifierConfig, $args)
{
$purifierConfig->set('Attr.IDPrefix', 'foo_');
return $purifierConfig;
}
}