html_purifier_config_setup
New in version 2.7.
Usage
Alters the configuration settings for the HTMLPurifier library.
Value
HTMLPurifier_Config
$purifierConfigThe config object for HTMLPurifier
Arguments
array
defaultsThe default configuration keys (these have already been set to the passed config object)
array
allowedHtmlElementsList of user-configured enabled elements
array
allowedHtmlAttributesList 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;
}
}