\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.
Synopsis
class HTMLPurifier_TagTransform_Simple
extends HTMLPurifier_TagTransform
{
- // members
- protected $style;
- // Inherited members from HTMLPurifier_TagTransform
- public $transform_to;
- // methods
- public void __construct()
- public void transform()
- // Inherited methods from HTMLPurifier_TagTransform
- public abstract void transform()
- protected void prependCSS()
Hierarchy
Extends
Members
protected
- $style
public
-
$transform_to
Tag name to transform the tag to.
Methods
public
Inherited from HTMLPurifier_TagTransform
protected
- prependCSS() — Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.
public
- transform() — Transforms the obsolete tag into the valid tag.