HTMLPurifier 4.4.0
|
Transforms FONT tags to the proper form (SPAN with CSS styling) More...
Public Member Functions | |
transform ($tag, $config, $context) | |
Transforms the obsolete tag into the valid tag. | |
transform ($tag, $config, $context) | |
Transforms the obsolete tag into the valid tag. | |
Public Attributes | |
$transform_to = 'span' | |
Tag name to transform the tag to. | |
Protected Attributes | |
$_size_lookup |
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.
HTMLPurifier_TagTransform_Font::transform | ( | $ | tag, |
$ | config, | ||
$ | context | ||
) |
Transforms the obsolete tag into the valid tag.
$tag | Tag to be transformed. |
$config | Mandatory HTMLPurifier_Config object |
$context | Mandatory HTMLPurifier_Context object |
Reimplemented from HTMLPurifier_TagTransform.
HTMLPurifier_TagTransform_Font::transform | ( | $ | tag, |
$ | config, | ||
$ | context | ||
) |
Transforms the obsolete tag into the valid tag.
$tag | Tag to be transformed. |
$config | Mandatory HTMLPurifier_Config object |
$context | Mandatory HTMLPurifier_Context object |
Reimplemented from HTMLPurifier_TagTransform.
Definition at line 16589 of file HTMLPurifier.standalone.php.
HTMLPurifier_TagTransform_Font::$_size_lookup [protected] |
array( '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%' )
HTMLPurifier_TagTransform_Font::$transform_to = 'span' |
Tag name to transform the tag to.
Reimplemented from HTMLPurifier_TagTransform.