Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
HTMLPurifier_TagTransform Class Reference
Inheritance diagram for HTMLPurifier_TagTransform:
HTMLPurifier_TagTransform_Font HTMLPurifier_TagTransform_Simple

Public Member Functions

 transform ($tag, $config, $context)
 Transforms the obsolete tag into the valid tag.
 

Public Attributes

 $transform_to
 Tag name to transform the tag to.
 

Protected Member Functions

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

Member Function Documentation

◆ prependCSS()

HTMLPurifier_TagTransform::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

◆ transform()

HTMLPurifier_TagTransform::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.

Member Data Documentation

◆ $transform_to

HTMLPurifier_TagTransform::$transform_to

Tag name to transform the tag to.

@type string


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