Decorator that, depending on a token, switches between two definitions.
Methods | ||||||||
---|---|---|---|---|---|---|---|---|
public
|
__construct(string $tag, HTMLPurifier_AttrDef $with_tag, HTMLPurifier_AttrDef $without_tag)
Parameters
|
# | ||||||
public
|
validate(string $string, HTMLPurifier_Config $config, HTMLPurifier_Context $context): bool|string
|
# |
Properties | |||
---|---|---|---|
protected
|
|
$tag
|
# |
protected
|
|
$withTag
|
# |
protected
|
|
$withoutTag
|
# |