Class HTMLPurifier_AttrDef_CSS_Number
Validates a number as defined by the CSS spec.
-
HTMLPurifier_AttrDef
-
HTMLPurifier_AttrDef_CSS_Number
Methods summary
public
|
#
__construct( boolean $non_negative = false )
Parameters
- $non_negative
boolean $non_negative indicates whether negatives are forbidden
|
public
string|boolean
|
#
validate( string $number, HTMLPurifier_Config $config, HTMLPurifier_Context $context )
Parameters
Returns
string|boolean
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 |
#
Indicates whether or not only positive values are allowed.
Indicates whether or not only positive values are allowed.
Type
bool
|