Class HTMLPurifier_AttrDef_URI

InheritanceHTMLPurifier_AttrDef_URI » HTMLPurifier_AttrDef
SubclassesHTMLPurifier_AttrDef_CSS_URI

Validates a URI as defined by RFC 3986.

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
__construct() HTMLPurifier_AttrDef_URI
make() HTMLPurifier_AttrDef_URI
parseCDATA() Convenience method that parses a string as if it were CDATA. HTMLPurifier_AttrDef
validate() HTMLPurifier_AttrDef_URI

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

$embedsResource protected property
protected $embedsResource null
$parser protected property
protected $parser null

Method Details

__construct() public method

public void __construct ( $embeds_resource false )
$embeds_resource bool

Does the URI here result in an extra HTTP request?

make() public method

public HTMLPurifier_AttrDef_URI make ( $string )
$string string
validate() public method

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