PHP Class HTMLPurifier_TagTransform, yii

显示文件 Open project: yiisoft/yii

Public Properties

Property Type Description
$transform_to Tag name to transform the tag to.

Public Methods

Method Description
transform ( HTMLPurifier_Token_Tag $tag, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) Transforms the obsolete tag into the valid tag.

Protected Methods

Method Description
prependCSS ( array &$attr, string $css ) Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.

Method Details

prependCSS() protected method

Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.
protected prependCSS ( array &$attr, string $css )
$attr array Attribute array to process (passed by reference)
$css string CSS to prepend

transform() abstract public method

Transforms the obsolete tag into the valid tag.
abstract public transform ( HTMLPurifier_Token_Tag $tag, HTMLPurifier_Config $config, HTMLPurifier_Context $context )
$tag HTMLPurifier_Token_Tag Tag to be transformed.
$config HTMLPurifier_Config Mandatory HTMLPurifier_Config object
$context HTMLPurifier_Context Mandatory HTMLPurifier_Context object

Property Details

$transform_to public_oe property

Tag name to transform the tag to.
public $transform_to