$tag
$tag
Decorator that, depending on a token, switches between two definitions.
__construct(string $tag, \HTMLPurifier_AttrDef $with_tag, \HTMLPurifier_AttrDef $without_tag) : mixed
string | $tag | Tag name to switch upon |
\HTMLPurifier_AttrDef | $with_tag | Call if token matches tag |
\HTMLPurifier_AttrDef | $without_tag | Call if token doesn't match, or there is no token |