API - XOOPS 2.5.11 Beta 2
By monxoops.fr
HTMLPurifier_TagTransform Class Reference
Inheritance diagram for HTMLPurifier_TagTransform:

Public Member Functions

 transform ($tag, $config, $context)
 

Data Fields

 $transform_to
 

Protected Member Functions

 prependCSS (&$attr, $css)
 

Detailed Description

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

Member Function Documentation

◆ prependCSS()

prependCSS ( $attr,
  $css 
)
protected

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

Warning
Copied over from AttrTransform, be sure to keep in sync
Parameters
array$attrAttribute array to process (passed by reference)
string$cssCSS to prepend
Here is the caller graph for this function:

◆ transform()

transform (   $tag,
  $config,
  $context 
)
abstract

Transforms the obsolete tag into the valid tag.

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

Reimplemented in HTMLPurifier_TagTransform_Font, and HTMLPurifier_TagTransform_Simple.

Field Documentation

◆ $transform_to

$transform_to

Tag name to transform the tag to. @type string


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