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. face, and size.

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 /library/HTMLPurifier/TagTransform/Font.php (line 15)

HTMLPurifier_TagTransform
   |
   --HTMLPurifier_TagTransform_Font
Variable Summary
Method Summary
void transform ( $tag,  $config,  $context)
Variables
mixed $transform_to = 'span' (line 18)
  • 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 20)
  • access: protected
Methods
transform (line 37)
  • 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 Thu, 19 Jun 2008 18:49:14 -0400 by phpDocumentor 1.4.2