\HTMLPurifier_AttrTransform_ImgRequired
Transform that supplies default values for the src and alt attributes in img tags, as well as prevents the img tag from being removed because of a missing alt tag. This needs to be registered as both a pre and post attribute transform.
Synopsis
class HTMLPurifier_AttrTransform_ImgRequired
extends HTMLPurifier_AttrTransform
{
- // methods
- public void transform()
- // Inherited methods from HTMLPurifier_AttrTransform
- public abstract void transform()
- public void prependCSS()
- public void confiscateAttr()
Hierarchy
Extends
Methods
public
Inherited from HTMLPurifier_AttrTransform
public
- confiscateAttr() — Retrieves and removes an attribute
- prependCSS() — Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.
- transform() — Abstract: makes changes to the attributes dependent on multiple values.