HTMLPurifier_AttrDef_Switch::__construct
Signature
public function __construct(string
$tag,
HTMLPurifier_AttrDef
$with_tag,
HTMLPurifier_AttrDef
$without_tag )
Parameters
$tag
— string- Tag name to switch upon
$with_tag
— object- Call if token matches tag
$without_tag
— object- Call if token doesn't match, or there is no token