\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.

Summary

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

Properties

$transform_to

$transform_to

Tag name to transform the tag to.

$style

$style

Methods

transform()

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

Transforms the obsolete tag into the valid tag.

Parameters

\HTMLPurifier_Token_Tag $tag
\HTMLPurifier_Config $config
\HTMLPurifier_Context $context

Returns

string —

__construct()

__construct(string  $transform_to, string  $style = null) : mixed

Parameters

string $transform_to

Tag name to transform to.

string $style

CSS style to add to the tag

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 —