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

Type

$style

$style : 

Type

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

Tag to be transformed.

\HTMLPurifier_Config $config

Mandatory HTMLPurifier_Config object

\HTMLPurifier_Context $context

Mandatory HTMLPurifier_Context object

Returns

string

__construct()

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

Parameters

string $transform_to

Tag name to transform to.

string $style

CSS style to add to the tag

prependCSS()

prependCSS(array  $attr, string  $css) 

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