|
| confiscateAttr (&$attr, $key) |
| Retrieves and removes an attribute.
|
|
| prependCSS (&$attr, $css) |
| Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.
|
|
| transform ($attr, $config, $context) |
| Abstract: makes changes to the attributes dependent on multiple values.
|
|
◆ confiscateAttr()
HTMLPurifier_AttrTransform::confiscateAttr |
( |
& | $attr, |
|
|
| $key ) |
Retrieves and removes an attribute.
- Parameters
-
array | &$attr | Attribute array to process (passed by reference) |
mixed | $key | Key of attribute to confiscate |
- Return values
-
◆ prependCSS()
HTMLPurifier_AttrTransform::prependCSS |
( |
& | $attr, |
|
|
| $css ) |
Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.
- Parameters
-
array | &$attr | Attribute array to process (passed by reference) |
string | $css | CSS to prepend |
◆ transform()
HTMLPurifier_AttrTransform::transform |
( |
| $attr, |
|
|
| $config, |
|
|
| $context ) |
|
abstract |
Abstract: makes changes to the attributes dependent on multiple values.
- Parameters
-
- Return values
-
array | Processed attribute array. |
Reimplemented in HTMLPurifier_AttrTransform_Background, HTMLPurifier_AttrTransform_BdoDir, HTMLPurifier_AttrTransform_BgColor, HTMLPurifier_AttrTransform_BoolToCSS, HTMLPurifier_AttrTransform_Border, HTMLPurifier_AttrTransform_EnumToCSS, HTMLPurifier_AttrTransform_ImgRequired, HTMLPurifier_AttrTransform_ImgSpace, HTMLPurifier_AttrTransform_Input, HTMLPurifier_AttrTransform_Lang, HTMLPurifier_AttrTransform_Length, HTMLPurifier_AttrTransform_Name, HTMLPurifier_AttrTransform_NameSync, HTMLPurifier_AttrTransform_Nofollow, HTMLPurifier_AttrTransform_SafeEmbed, HTMLPurifier_AttrTransform_SafeObject, HTMLPurifier_AttrTransform_SafeParam, HTMLPurifier_AttrTransform_ScriptRequired, HTMLPurifier_AttrTransform_TargetBlank, HTMLPurifier_AttrTransform_TargetNoopener, HTMLPurifier_AttrTransform_TargetNoreferrer, and HTMLPurifier_AttrTransform_Textarea.
The documentation for this class was generated from the following file:
- lib/htmlpurifier/HTMLPurifier/AttrTransform.php