Class HTMLPurifier_TagTransform_Simple

InheritanceHTMLPurifier_TagTransform_Simple » HTMLPurifier_TagTransform

Simple transformation, just change tag name to something else, and possibly add some styling. This will cover most of the deprecated tag cases.

Public Properties

Hide inherited properties

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

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$style HTMLPurifier_TagTransform_Simple

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

$style protected property
protected $style null

Method Details

__construct() public method

public void __construct ( $transform_to, $style null )
$transform_to string

Tag name to transform to.

$style string

CSS style to add to the tag

transform() public method

public string transform ( $tag, $config, $context )
$tag HTMLPurifier_Token_Tag
$config HTMLPurifier_Config
$context HTMLPurifier_Context