Class HTMLPurifier_TagTransform_Font
Inheritance | HTMLPurifier_TagTransform_Font » HTMLPurifier_TagTransform |
---|
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.
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$transform_to | HTMLPurifier_TagTransform_Font |
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$_size_lookup | HTMLPurifier_TagTransform_Font |
Public Methods
Method | Description | Defined By |
---|---|---|
transform() | HTMLPurifier_TagTransform_Font |
Protected Methods
Method | Description | Defined By |
---|---|---|
prependCSS() | Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist. | HTMLPurifier_TagTransform |
Property Details
protected $_size_lookup = ['0' => 'xx-small', '1' => 'xx-small', '2' => 'small', '3' => 'medium', '4' => 'large', '5' => 'x-large', '6' => 'xx-large', '7' => '300%', '-1' => 'smaller', '-2' => '60%', '+1' => 'larger', '+2' => '150%', '+3' => '200%', '+4' => '300%']
Method Details
public HTMLPurifier_Token_End|string transform ( $tag, $config, $context ) | ||
$tag | HTMLPurifier_Token_Tag | |
$config | HTMLPurifier_Config | |
$context | HTMLPurifier_Context |