Abstract Class HTMLPurifier_TagTransform

InheritanceHTMLPurifier_TagTransform
SubclassesHTMLPurifier_TagTransform_Font, HTMLPurifier_TagTransform_Simple

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

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$transform_to Tag name to transform the tag to. HTMLPurifier_TagTransform

Public Methods

Hide inherited methods

MethodDescriptionDefined By
transform() Transforms the obsolete tag into the valid tag. HTMLPurifier_TagTransform

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
prependCSS() Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist. HTMLPurifier_TagTransform

Property Details

$transform_to public property
public $transform_to null

Method Details

prependCSS() protected method

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

protected void prependCSS ( <b>&</b>$attr, $css )
$attr array

Attribute array to process (passed by reference)

$css string

CSS to prepend

transform() public abstract method

Transforms the obsolete tag into the valid tag.

public abstract void transform ( $tag, $config, $context )
$tag HTMLPurifier_Token_Tag

Tag to be transformed.

$config HTMLPurifier_Config

Mandatory HTMLPurifier_Config object

$context HTMLPurifier_Context

Mandatory HTMLPurifier_Context object