Class HTMLPurifier_TagTransform_Simple
Inheritance | HTMLPurifier_TagTransform_Simple » HTMLPurifier_TagTransform |
---|
Simple transformation, just change tag name to something else, and possibly add some styling. This will cover most of the deprecated tag cases.
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$transform_to | Tag name to transform the tag to. | HTMLPurifier_TagTransform |
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$style | HTMLPurifier_TagTransform_Simple |
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | HTMLPurifier_TagTransform_Simple | |
transform() | HTMLPurifier_TagTransform_Simple |
Protected Methods
Method | Description | Defined By |
---|---|---|
prependCSS() | Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist. | HTMLPurifier_TagTransform |
Property Details
Method Details
public void __construct ( $transform_to, $style = null ) | ||
$transform_to | string | Tag name to transform to. |
$style | string | CSS style to add to the tag |
public string transform ( $tag, $config, $context ) | ||
$tag | HTMLPurifier_Token_Tag | |
$config | HTMLPurifier_Config | |
$context | HTMLPurifier_Context |