HTMLPurifier 4.4.0
HTMLPurifier_TagTransform_Simple Class Reference

Simple transformation, just change tag name to something else, and possibly add some styling. More...

Inheritance diagram for HTMLPurifier_TagTransform_Simple:
HTMLPurifier_TagTransform HTMLPurifier_TagTransform

List of all members.

Public Member Functions

 __construct ($transform_to, $style=null)
 transform ($tag, $config, $context)
 Transforms the obsolete tag into the valid tag.
 __construct ($transform_to, $style=null)
 transform ($tag, $config, $context)
 Transforms the obsolete tag into the valid tag.

Protected Attributes

 $style

Detailed Description

Simple transformation, just change tag name to something else, and possibly add some styling.

This will cover most of the deprecated tag cases.

Definition at line 8 of file Simple.php.


Constructor & Destructor Documentation

HTMLPurifier_TagTransform_Simple::__construct ( transform_to,
style = null 
)
Parameters:
$transform_toTag name to transform to.
$styleCSS style to add to the tag

Definition at line 17 of file Simple.php.

References $style, and HTMLPurifier_TagTransform::$transform_to.

HTMLPurifier_TagTransform_Simple::__construct ( transform_to,
style = null 
)
Parameters:
$transform_toTag name to transform to.
$styleCSS style to add to the tag

Definition at line 16665 of file HTMLPurifier.standalone.php.

References $style, and HTMLPurifier_TagTransform::$transform_to.


Member Function Documentation

HTMLPurifier_TagTransform_Simple::transform ( tag,
config,
context 
)

Transforms the obsolete tag into the valid tag.

Parameters:
$tagTag to be transformed.
$configMandatory HTMLPurifier_Config object
$contextMandatory HTMLPurifier_Context object

Reimplemented from HTMLPurifier_TagTransform.

Definition at line 22 of file Simple.php.

References HTMLPurifier_TagTransform::prependCSS().

HTMLPurifier_TagTransform_Simple::transform ( tag,
config,
context 
)

Transforms the obsolete tag into the valid tag.

Parameters:
$tagTag to be transformed.
$configMandatory HTMLPurifier_Config object
$contextMandatory HTMLPurifier_Context object

Reimplemented from HTMLPurifier_TagTransform.

Definition at line 16670 of file HTMLPurifier.standalone.php.

References HTMLPurifier_TagTransform::prependCSS().


Member Data Documentation

HTMLPurifier_TagTransform_Simple::$style [protected]

Definition at line 11 of file Simple.php.

Referenced by __construct().


The documentation for this class was generated from the following files: