Class HTMLPurifier_AttrDef_URI_Host

InheritanceHTMLPurifier_AttrDef_URI_Host » HTMLPurifier_AttrDef

Validates a host according to the IPv4, IPv6 and DNS (future) specifications.

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
$ipv4 IPv4 sub-validator. HTMLPurifier_AttrDef_URI_Host
$ipv6 IPv6 sub-validator. HTMLPurifier_AttrDef_URI_Host

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() HTMLPurifier_AttrDef_URI_Host
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_URI_Host

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

$ipv4 protected property
protected $ipv4 null
$ipv6 protected property
protected $ipv6 null

Method Details

__construct() public method

public void __construct ( )
validate() public method

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