Class HTMLPurifier_TagTransform_Font

Description

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.

Located in /lib/core/Parsers/htmlpurifier/HTMLPurifier.standalone.php (line 15322)

HTMLPurifier_TagTransform
   |
   --HTMLPurifier_TagTransform_Font
Variable Summary
Method Summary
void transform ( $tag,  $config,  $context)
Variables
mixed $transform_to = 'span' (line 15325)
  • access: public

Redefinition of:
HTMLPurifier_TagTransform::$transform_to
Tag name to transform the tag to.
mixed $_size_lookup = 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%'
)
(line 15327)
  • access: protected
Methods
transform (line 15344)
  • access: public
void transform ( $tag,  $config,  $context)
  • $tag
  • $config
  • $context

Redefinition of:
HTMLPurifier_TagTransform::transform()
Transforms the obsolete tag into the valid tag.

Inherited Methods

Inherited From HTMLPurifier_TagTransform

HTMLPurifier_TagTransform::prependCSS()
HTMLPurifier_TagTransform::transform()

Documentation generated on Sun, 06 Mar 2011 00:24:13 -0500 by phpDocumentor 1.4.3