HTMLPurifier 4.4.0
|
Validates a MultiLength as defined by the HTML spec. More...
Public Member Functions | |
validate ($string, $config, $context) | |
Validates and cleans passed string according to a definition. | |
validate ($string, $config, $context) | |
Validates and cleans passed string according to a definition. |
Validates a MultiLength as defined by the HTML spec.
A multilength is either a integer (pixel count), a percentage, or a relative number.
Definition at line 9 of file MultiLength.php.
HTMLPurifier_AttrDef_HTML_MultiLength::validate | ( | $ | string, |
$ | config, | ||
$ | context | ||
) |
Validates and cleans passed string according to a definition.
$string | String to be validated and cleaned. |
$config | Mandatory HTMLPurifier_Config object. |
$context | Mandatory HTMLPurifier_AttrContext object. |
Reimplemented from HTMLPurifier_AttrDef_HTML_Length.
Definition at line 12 of file MultiLength.php.
References $config.
Referenced by validate().
HTMLPurifier_AttrDef_HTML_MultiLength::validate | ( | $ | string, |
$ | config, | ||
$ | context | ||
) |
Validates and cleans passed string according to a definition.
$string | String to be validated and cleaned. |
$config | Mandatory HTMLPurifier_Config object. |
$context | Mandatory HTMLPurifier_AttrContext object. |
Reimplemented from HTMLPurifier_AttrDef_HTML_Length.
Definition at line 10351 of file HTMLPurifier.standalone.php.
References $config, and validate().