\HTMLPurifier_TagTransform

Defines a mutation of an obsolete tag into a valid tag.

Summary

Methods
Properties
Constants
transform()
$transform_to
No constants found
prependCSS()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$transform_to

$transform_to

Tag name to transform the tag to.

Methods

transform()

transform(\HTMLPurifier_Token_Tag  $tag, \HTMLPurifier_Config  $config, \HTMLPurifier_Context  $context) : mixed

Transforms the obsolete tag into the valid tag.

Parameters

\HTMLPurifier_Token_Tag $tag

Tag to be transformed.

\HTMLPurifier_Config $config

Mandatory HTMLPurifier_Config object

\HTMLPurifier_Context $context

Mandatory HTMLPurifier_Context object

Returns

mixed —

prependCSS()

prependCSS(array  $attr, string  $css) : mixed

Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.

Parameters

array $attr

Attribute array to process (passed by reference)

string $css

CSS to prepend

Returns

mixed —