Class HTMLPurifier_AttrDef_HTML_Nmtokens

InheritanceHTMLPurifier_AttrDef_HTML_Nmtokens » HTMLPurifier_AttrDef
SubclassesHTMLPurifier_AttrDef_HTML_Class

Validates contents based on NMTOKENS attribute type.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$minimized Tells us whether or not an HTML attribute is minimized. HTMLPurifier_AttrDef
$required Tells us whether or not an HTML attribute is required. HTMLPurifier_AttrDef

Public Methods

Hide inherited methods

MethodDescriptionDefined By
make() Factory method for creating this class from a string. HTMLPurifier_AttrDef
parseCDATA() Convenience method that parses a string as if it were CDATA. HTMLPurifier_AttrDef
validate() HTMLPurifier_AttrDef_HTML_Nmtokens

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
expandCSSEscape() Parses a possibly escaped CSS string and returns the "pure" version of it. HTMLPurifier_AttrDef
filter() Template method for removing certain tokens based on arbitrary criteria. HTMLPurifier_AttrDef_HTML_Nmtokens
mungeRgb() Removes spaces from rgb(0, 0, 0) so that shorthand CSS properties work properly. THIS IS A HACK! HTMLPurifier_AttrDef
split() Splits a space separated list of tokens into its constituent parts. HTMLPurifier_AttrDef_HTML_Nmtokens

Method Details

filter() protected method

Template method for removing certain tokens based on arbitrary criteria.

protected array filter ( $tokens, $config, $context )
$tokens array
$config HTMLPurifier_Config
$context HTMLPurifier_Context
split() protected method

Splits a space separated list of tokens into its constituent parts.

protected array split ( $string, $config, $context )
$string string
$config HTMLPurifier_Config
$context HTMLPurifier_Context
validate() public method

public bool|string validate ( $string, $config, $context )
$string string
$config HTMLPurifier_Config
$context HTMLPurifier_Context