\HTMLPurifier_TagTransform_Font

Transforms FONT tags to the proper form (SPAN with CSS styling)

This transformation takes the three proprietary attributes of FONT and transforms them into their corresponding CSS attributes. These are color, face, and size.

Summary

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

Properties

$transform_to

$transform_to

Tag name to transform the tag to.

$_size_lookup

$_size_lookup

Methods

transform()

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

Transforms the obsolete tag into the valid tag.

Parameters

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

Returns

\HTMLPurifier_Token_End|string —

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 —