extends |
HTMLPurifier_AttrDef |
---|
Allows multiple validators to attempt to validate attribute.
Composite is just what it sounds like: a composite of many validators. This means that multiple HTMLPurifier_AttrDef objects will have a whack at the string. If one of them passes, that's what is returned. This is especially useful for CSS values, which often are a choice between an enumerated set of predefined values or a flexible data type.
Methods | ||||||||
---|---|---|---|---|---|---|---|---|
public
|
__construct(HTMLPurifier_AttrDef[] $defs)
Parameters
|
# | ||||||
public
|
validate(string $string, HTMLPurifier_Config $config, HTMLPurifier_Context $context): bool|string
Validates and cleans passed string according to a definition.
Validates and cleans passed string according to a definition. Parameters
Implements |
# |
Methods inherited from HTMLPurifier_AttrDef |
---|
parseCDATA(), make(), mungeRgb(), expandCSSEscape() |
Properties | |||
---|---|---|---|
public
|
|
$defs
List of objects that may process strings.
List of objects that may process strings. |
# |
Properties inherited from HTMLPurifier_AttrDef |
---|
$minimized, $required |