|
HTMLPurifier 4.4.0
|
Validates a Percentage as defined by the CSS spec. More...
Public Member Functions | |
| __construct ($non_negative=false) | |
| validate ($string, $config, $context) | |
| Validates and cleans passed string according to a definition. | |
| __construct ($non_negative=false) | |
| validate ($string, $config, $context) | |
| Validates and cleans passed string according to a definition. | |
Protected Attributes | |
| $number_def | |
| Instance of HTMLPurifier_AttrDef_CSS_Number to defer number validation. | |
Validates a Percentage as defined by the CSS spec.
Definition at line 6 of file Percentage.php.
| HTMLPurifier_AttrDef_CSS_Percentage::__construct | ( | $ | non_negative = false | ) |
| Bool | indicating whether to forbid negative values |
Definition at line 17 of file Percentage.php.
| HTMLPurifier_AttrDef_CSS_Percentage::__construct | ( | $ | non_negative = false | ) |
| Bool | indicating whether to forbid negative values |
Definition at line 9816 of file HTMLPurifier.standalone.php.
| HTMLPurifier_AttrDef_CSS_Percentage::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 21 of file Percentage.php.
References $config, and HTMLPurifier_AttrDef::parseCDATA().
| HTMLPurifier_AttrDef_CSS_Percentage::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 9820 of file HTMLPurifier.standalone.php.
References $config, and HTMLPurifier_AttrDef::parseCDATA().
HTMLPurifier_AttrDef_CSS_Percentage::$number_def [protected] |
Instance of HTMLPurifier_AttrDef_CSS_Number to defer number validation.
Definition at line 12 of file Percentage.php.