Class HTMLPurifier_AttrTransform_ImgRequired
Inheritance | HTMLPurifier_AttrTransform_ImgRequired » HTMLPurifier_AttrTransform |
---|
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.
Public Methods
Method | Description | Defined By |
---|---|---|
confiscateAttr() | Retrieves and removes an attribute | HTMLPurifier_AttrTransform |
prependCSS() | Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist. | HTMLPurifier_AttrTransform |
transform() | HTMLPurifier_AttrTransform_ImgRequired |
Method Details
public array transform ( $attr, $config, $context ) | ||
$attr | array | |
$config | HTMLPurifier_Config | |
$context | HTMLPurifier_Context |