Property | Type | Description | |
---|---|---|---|
$tag | |||
$withTag | |||
$withoutTag |
Method | Description | |
---|---|---|
__construct ( string $tag, HTMLPurifier_AttrDef $with_tag, HTMLPurifier_AttrDef $without_tag ) | ||
validate ( string $string, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean | string |
public __construct ( string $tag, HTMLPurifier_AttrDef $with_tag, HTMLPurifier_AttrDef $without_tag ) | ||
$tag | string | Tag name to switch upon |
$with_tag | HTMLPurifier_AttrDef | Call if token matches tag |
$without_tag | HTMLPurifier_AttrDef | Call if token doesn't match, or there is no token |