extends |
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.
Methods | ||||||||
---|---|---|---|---|---|---|---|---|
public
|
transform(array $attr, HTMLPurifier_Config $config, HTMLPurifier_Context $context): array
Abstract: makes changes to the attributes dependent on multiple values.
Abstract: makes changes to the attributes dependent on multiple values. Parameters
ReturnsProcessed attribute array. Implements |
# |
Methods inherited from HTMLPurifier_AttrTransform |
---|
prependCSS(), confiscateAttr() |