Class HTMLPurifier_AttrDef_CSS_Percentage
Validates a Percentage as defined by the CSS spec.
-
HTMLPurifier_AttrDef
-
HTMLPurifier_AttrDef_CSS_Percentage
Methods summary
public
|
#
__construct( Bool $non_negative = false )
Parameters
- $non_negative
Bool indicating whether to forbid negative values
|
public
|
#
validate( $string $string, $config $config, $context $context )
Validates and cleans passed string according to a definition.
Validates and cleans passed string according to a definition.
Parameters
- $string
$string String to be validated and cleaned.
- $config
$config Mandatory HTMLPurifier_Config object.
- $context
$context Mandatory HTMLPurifier_AttrContext object.
|
Properties summary
protected
|
$number_def
|
|
#
Instance of HTMLPurifier_AttrDef_CSS_Number to defer number validation
Instance of HTMLPurifier_AttrDef_CSS_Number to defer number validation
|