HTMLPurifier 4.4.0
|
Pre-transform that changes deprecated hspace and vspace attributes to CSS. More...
Public Member Functions | |
__construct ($attr) | |
transform ($attr, $config, $context) | |
Abstract: makes changes to the attributes dependent on multiple values. | |
__construct ($attr) | |
transform ($attr, $config, $context) | |
Abstract: makes changes to the attributes dependent on multiple values. | |
Protected Attributes | |
$attr | |
$css |
Pre-transform that changes deprecated hspace and vspace attributes to CSS.
Definition at line 6 of file ImgSpace.php.
HTMLPurifier_AttrTransform_ImgSpace::__construct | ( | $ | attr | ) |
Definition at line 14 of file ImgSpace.php.
References $attr.
HTMLPurifier_AttrTransform_ImgSpace::__construct | ( | $ | attr | ) |
Definition at line 10904 of file HTMLPurifier.standalone.php.
References $attr.
HTMLPurifier_AttrTransform_ImgSpace::transform | ( | $ | attr, |
$ | config, | ||
$ | context | ||
) |
Abstract: makes changes to the attributes dependent on multiple values.
$attr | Assoc array of attributes, usually from HTMLPurifier_Token_Tag::$attr |
$config | Mandatory HTMLPurifier_Config object. |
$context | Mandatory HTMLPurifier_Context object |
Reimplemented from HTMLPurifier_AttrTransform.
Definition at line 21 of file ImgSpace.php.
References $attr, HTMLPurifier_AttrTransform::confiscateAttr(), and HTMLPurifier_AttrTransform::prependCSS().
HTMLPurifier_AttrTransform_ImgSpace::transform | ( | $ | attr, |
$ | config, | ||
$ | context | ||
) |
Abstract: makes changes to the attributes dependent on multiple values.
$attr | Assoc array of attributes, usually from HTMLPurifier_Token_Tag::$attr |
$config | Mandatory HTMLPurifier_Config object. |
$context | Mandatory HTMLPurifier_Context object |
Reimplemented from HTMLPurifier_AttrTransform.
Definition at line 10911 of file HTMLPurifier.standalone.php.
References $attr, HTMLPurifier_AttrTransform::confiscateAttr(), and HTMLPurifier_AttrTransform::prependCSS().
HTMLPurifier_AttrTransform_ImgSpace::$attr [protected] |
Definition at line 8 of file ImgSpace.php.
Referenced by __construct(), and transform().
HTMLPurifier_AttrTransform_ImgSpace::$css [protected] |
array( 'hspace' => array('left', 'right'), 'vspace' => array('top', 'bottom') )
Definition at line 9 of file ImgSpace.php.