Class HTMLPurifier_AttrDef_CSS_Number
Validates a number as defined by the CSS spec.
-
HTMLPurifier_AttrDef
-
HTMLPurifier_AttrDef_CSS_Number
Methods summary
public
|
#
__construct( $non_negative $non_negative = false )
Parameters
- $non_negative
$non_negative Bool indicating whether negatives are forbidden
|
public
|
#
validate( $string $number, $config $config, $context $context )
Parameters
- $number
$string String to be validated and cleaned.
- $config
$config Mandatory HTMLPurifier_Config object.
- $context
$context Mandatory HTMLPurifier_AttrContext object.
Warning
Some contexts do not pass $config, $context. These variables should not be used
without checking HTMLPurifier_Length
|
Properties summary
protected
boolean
|
$non_negative
|
false |
#
Bool indicating whether or not only positive values allowed.
Bool indicating whether or not only positive values allowed.
|