Class HTMLPurifier_TagTransform_Simple
Simple transformation, just change tag name to something else, and possibly
add some styling. This will cover most of the deprecated tag cases.
-
HTMLPurifier_TagTransform
-
HTMLPurifier_TagTransform_Simple
Methods summary
public
|
#
__construct( $transform_to $transform_to, $style $style = null )
Parameters
- $transform_to
$transform_to Tag name to transform to.
- $style
$style CSS style to add to the tag
|
public
|
#
transform( $tag $tag, $config $config, $context $context )
Transforms the obsolete tag into the valid tag.
Transforms the obsolete tag into the valid tag.
Parameters
- $tag
$tag Tag to be transformed.
- $config
$config Mandatory HTMLPurifier_Config object
- $context
$context Mandatory HTMLPurifier_Context object
|
Properties summary
protected
|
$style
|
|
|