$tag
$tag :
Decorator that, depending on a token, switches between two definitions.
__construct(string $tag, \HTMLPurifier_AttrDef $with_tag, \HTMLPurifier_AttrDef $without_tag)
| 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 |
validate(string $string, \HTMLPurifier_Config $config, \HTMLPurifier_Context $context) : boolean|string
| string | $string | |
| \HTMLPurifier_Config | $config | |
| \HTMLPurifier_Context | $context |