Class HTMLPurifier_AttrDef_HTML_MultiLength

InheritanceHTMLPurifier_AttrDef_HTML_MultiLength » HTMLPurifier_AttrDef_HTML_Length » HTMLPurifier_AttrDef_HTML_Pixels » HTMLPurifier_AttrDef

Validates a MultiLength as defined by the HTML spec.

A multilength is either a integer (pixel count), a percentage, or a relative number.

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

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$max HTMLPurifier_AttrDef_HTML_Pixels

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
expandCSSEscape() Parses a possibly escaped CSS string and returns the "pure" version of it. HTMLPurifier_AttrDef
mungeRgb() Removes spaces from rgb(0, 0, 0) so that shorthand CSS properties work properly. THIS IS A HACK! HTMLPurifier_AttrDef

Method Details

validate() public method

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