Class HTMLPurifier_AttrDef_HTML_Nmtokens
Validates contents based on NMTOKENS attribute type.
-
HTMLPurifier_AttrDef
-
HTMLPurifier_AttrDef_HTML_Nmtokens
Methods summary
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.
|
protected
|
#
split( $string, $config, $context )
Splits a space separated list of tokens into its constituent parts.
Splits a space separated list of tokens into its constituent parts.
|
protected
|
#
filter( $tokens, $config, $context )
Template method for removing certain tokens based on arbitrary criteria.
Template method for removing certain tokens based on arbitrary criteria.
Note
If we wanted to be really functional, we'd do an array_filter with a callback.
But... we're not.
|