Class HTMLPurifier_AttrDef_HTML_Bool

InheritanceHTMLPurifier_AttrDef_HTML_Bool » HTMLPurifier_AttrDef

Validates a boolean attribute

Public Properties

Hide inherited properties

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

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$name HTMLPurifier_AttrDef_HTML_Bool

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

Property Details

$minimized public property
public $minimized true
$name protected property
protected $name null

Method Details

__construct() public method

public void __construct ( $name false )
$name bool
make() public method

public HTMLPurifier_AttrDef_HTML_Bool make ( $string )
$string string

Name of attribute

validate() public method

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