extends |
HTMLPurifier_AttrDef_HTML_Length |
---|
Validates a MultiLength as defined by the HTML spec.
A multilength is either a integer (pixel count), a percentage, or a relative number.
Methods | ||||||||
---|---|---|---|---|---|---|---|---|
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
Overrides |
# |
Methods inherited from HTMLPurifier_AttrDef_HTML_Pixels |
---|
__construct(), make() |
Methods inherited from HTMLPurifier_AttrDef |
---|
parseCDATA(), mungeRgb(), expandCSSEscape() |
Properties inherited from HTMLPurifier_AttrDef_HTML_Pixels |
---|
$max |
Properties inherited from HTMLPurifier_AttrDef |
---|
$minimized, $required |