HTMLPurifier_TagTransform
in package
AbstractYes
Defines a mutation of an obsolete tag into a valid tag.
Table of Contents
Properties
- $transform_to : mixed
- Tag name to transform the tag to.
Methods
- transform() : mixed
- Transforms the obsolete tag into the valid tag.
- prependCSS() : mixed
- Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.
Properties
$transform_to
Tag name to transform the tag to.
public
mixed
$transform_to
Tags
Methods
transform()
Transforms the obsolete tag into the valid tag.
public
abstract transform(HTMLPurifier_Token_Tag $tag, HTMLPurifier_Config $config, HTMLPurifier_Context $context) : mixed
Parameters
- $tag : HTMLPurifier_Token_Tag
-
Tag to be transformed.
- $config : HTMLPurifier_Config
-
Mandatory HTMLPurifier_Config object
- $context : HTMLPurifier_Context
-
Mandatory HTMLPurifier_Context object
prependCSS()
Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.
protected
prependCSS(array<string|int, mixed> &$attr, string $css) : mixed
Parameters
- $attr : array<string|int, mixed>
-
Attribute array to process (passed by reference)
- $css : string
-
CSS to prepend