Class HTMLPurifier_TagTransform

Description

Defines a mutation of an obsolete tag into a valid tag.

  • abstract:

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


	
			
Direct descendents
Class Description
HTMLPurifier_TagTransform_Font Transforms FONT tags to the proper form (SPAN with CSS styling)
HTMLPurifier_TagTransform_Simple Simple transformation, just change tag name to something else, and possibly add some styling. This will cover most of the deprecated tag cases.
Variable Summary
Method Summary
void prependCSS ($attr &$attr, $css $css)
void transform ($tag $tag, $config $config, $context $context)
Variables
mixed $transform_to (line 6591)

Tag name to transform the tag to.

  • access: public

Redefined in descendants as:
Methods
prependCSS (line 6608)

Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.

  • access: protected
void prependCSS ($attr &$attr, $css $css)
  • $attr &$attr: Attribute array to process (passed by reference)
  • $css $css: CSS to prepend
transform (line 6599)

Transforms the obsolete tag into the valid tag.

  • abstract:
  • access: public
void transform ($tag $tag, $config $config, $context $context)
  • $tag $tag: Tag to be transformed.
  • $config $config: Mandatory HTMLPurifier_Config object
  • $context $context: Mandatory HTMLPurifier_Context object

Redefined in descendants as:

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