HTMLPurifier 4.4.0
|
Validates the HTML attribute ID. More...
Public Member Functions | |
__construct ($selector=false) | |
validate ($id, $config, $context) | |
Validates and cleans passed string according to a definition. | |
__construct ($selector=false) | |
validate ($id, $config, $context) | |
Validates and cleans passed string according to a definition. | |
Protected Attributes | |
$selector | |
Determines whether or not we're validating an ID in a CSS selector context. |
Validates the HTML attribute ID.
HTMLPurifier_AttrDef_HTML_ID::__construct | ( | $ | selector = false | ) |
HTMLPurifier_AttrDef_HTML_ID::__construct | ( | $ | selector = false | ) |
Definition at line 10137 of file HTMLPurifier.standalone.php.
References $selector.
HTMLPurifier_AttrDef_HTML_ID::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.
Definition at line 28 of file ID.php.
References $config.
HTMLPurifier_AttrDef_HTML_ID::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.
Definition at line 10141 of file HTMLPurifier.standalone.php.
References $config.
HTMLPurifier_AttrDef_HTML_ID::$selector [protected] |
Determines whether or not we're validating an ID in a CSS selector context.
Definition at line 22 of file ID.php.
Referenced by __construct().