Class HTMLPurifier_AttrDef_CSS_ImportantDecorator
Decorator which enables !important to be used in CSS values.
-
HTMLPurifier_AttrDef
-
HTMLPurifier_AttrDef_CSS_ImportantDecorator
Methods summary
public
|
#
__construct( $def $def, $allow $allow = false )
Parameters
- $def
$def Definition to wrap
- $allow
$allow Whether or not to allow !important
|
public
|
#
validate( $string $string, $config $config, $context $context )
Intercepts and removes !important if necessary
Intercepts and removes !important if necessary
Parameters
- $string
$string String to be validated and cleaned.
- $config
$config Mandatory HTMLPurifier_Config object.
- $context
$context Mandatory HTMLPurifier_AttrContext object.
|