Class HTMLPurifier_AttrDef_CSS_URI
Inheritance | HTMLPurifier_AttrDef_CSS_URI » HTMLPurifier_AttrDef_URI » HTMLPurifier_AttrDef |
---|
Validates a URI in CSS syntax, which uses url('http://example.com')
Public Properties
Property | Type | Description | Defined 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
Property | Type | Description | Defined By |
---|---|---|---|
$embedsResource | HTMLPurifier_AttrDef_URI | ||
$parser | HTMLPurifier_AttrDef_URI |
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | HTMLPurifier_AttrDef_CSS_URI | |
make() | HTMLPurifier_AttrDef_URI | |
parseCDATA() | Convenience method that parses a string as if it were CDATA. | HTMLPurifier_AttrDef |
validate() | HTMLPurifier_AttrDef_CSS_URI |
Protected Methods
Method | Description | Defined 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
public void __construct ( ) |
public bool|string validate ( $uri_string, $config, $context ) | ||
$uri_string | string | |
$config | HTMLPurifier_Config | |
$context | HTMLPurifier_Context |