Abstract Class HTMLPurifier_TagTransform
Inheritance | HTMLPurifier_TagTransform |
---|---|
Subclasses | HTMLPurifier_TagTransform_Font, HTMLPurifier_TagTransform_Simple |
Defines a mutation of an obsolete tag into a valid tag.
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$transform_to | Tag name to transform the tag to. | HTMLPurifier_TagTransform |
Public Methods
Method | Description | Defined By |
---|---|---|
transform() | Transforms the obsolete tag into the valid tag. | HTMLPurifier_TagTransform |
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
Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.
protected void prependCSS ( <b>&</b>$attr, $css ) | ||
$attr | array | Attribute array to process (passed by reference) |
$css | string | CSS to prepend |
Transforms the obsolete tag into the valid tag.
public abstract void transform ( $tag, $config, $context ) | ||
$tag | HTMLPurifier_Token_Tag | Tag to be transformed. |
$config | HTMLPurifier_Config | Mandatory HTMLPurifier_Config object |
$context | HTMLPurifier_Context | Mandatory HTMLPurifier_Context object |