HTMLPurifier 4.4.0
|
Simple transformation, just change tag name to something else, and possibly add some styling. More...
Public Member Functions | |
__construct ($transform_to, $style=null) | |
transform ($tag, $config, $context) | |
Transforms the obsolete tag into the valid tag. | |
__construct ($transform_to, $style=null) | |
transform ($tag, $config, $context) | |
Transforms the obsolete tag into the valid tag. | |
Protected Attributes | |
$style |
Simple transformation, just change tag name to something else, and possibly add some styling.
This will cover most of the deprecated tag cases.
Definition at line 8 of file Simple.php.
HTMLPurifier_TagTransform_Simple::__construct | ( | $ | transform_to, |
$ | style = null |
||
) |
$transform_to | Tag name to transform to. |
$style | CSS style to add to the tag |
Definition at line 17 of file Simple.php.
References $style, and HTMLPurifier_TagTransform::$transform_to.
HTMLPurifier_TagTransform_Simple::__construct | ( | $ | transform_to, |
$ | style = null |
||
) |
$transform_to | Tag name to transform to. |
$style | CSS style to add to the tag |
Definition at line 16665 of file HTMLPurifier.standalone.php.
References $style, and HTMLPurifier_TagTransform::$transform_to.
HTMLPurifier_TagTransform_Simple::transform | ( | $ | tag, |
$ | config, | ||
$ | context | ||
) |
Transforms the obsolete tag into the valid tag.
$tag | Tag to be transformed. |
$config | Mandatory HTMLPurifier_Config object |
$context | Mandatory HTMLPurifier_Context object |
Reimplemented from HTMLPurifier_TagTransform.
Definition at line 22 of file Simple.php.
References HTMLPurifier_TagTransform::prependCSS().
HTMLPurifier_TagTransform_Simple::transform | ( | $ | tag, |
$ | config, | ||
$ | context | ||
) |
Transforms the obsolete tag into the valid tag.
$tag | Tag to be transformed. |
$config | Mandatory HTMLPurifier_Config object |
$context | Mandatory HTMLPurifier_Context object |
Reimplemented from HTMLPurifier_TagTransform.
Definition at line 16670 of file HTMLPurifier.standalone.php.
References HTMLPurifier_TagTransform::prependCSS().
HTMLPurifier_TagTransform_Simple::$style [protected] |
Definition at line 11 of file Simple.php.
Referenced by __construct().