HTMLPurifier 4.4.0
HTMLPurifier_AttrDef_CSS_URI Class Reference

Validates a URI in CSS syntax, which uses url('http://example.com') More...

Inheritance diagram for HTMLPurifier_AttrDef_CSS_URI:
HTMLPurifier_AttrDef_URI HTMLPurifier_AttrDef_URI HTMLPurifier_AttrDef HTMLPurifier_AttrDef HTMLPurifier_AttrDef HTMLPurifier_AttrDef

List of all members.

Public Member Functions

 __construct ()
 validate ($uri_string, $config, $context)
 Validates and cleans passed string according to a definition.
 __construct ()
 validate ($uri_string, $config, $context)
 Validates and cleans passed string according to a definition.

Detailed Description

Validates a URI in CSS syntax, which uses url('http://example.com')

Note:
While theoretically speaking a URI in a CSS document could be non-embedded, as of CSS2 there is no such usage so we're generalizing it. This may need to be changed in the future.
Warning:
Since HTMLPurifier_AttrDef_CSS blindly uses semicolons as the separator, you cannot put a literal semicolon in in the URI. Try percent encoding it, in that case.

Definition at line 12 of file URI.php.


Constructor & Destructor Documentation

HTMLPurifier_AttrDef_CSS_URI::__construct ( )

Definition at line 15 of file URI.php.

Referenced by __construct().

HTMLPurifier_AttrDef_CSS_URI::__construct ( )

Definition at line 9894 of file HTMLPurifier.standalone.php.

References __construct().


Member Function Documentation

HTMLPurifier_AttrDef_CSS_URI::validate ( string,
config,
context 
)

Validates and cleans passed string according to a definition.

Parameters:
$stringString to be validated and cleaned.
$configMandatory HTMLPurifier_Config object.
$contextMandatory HTMLPurifier_AttrContext object.

Reimplemented from HTMLPurifier_AttrDef_URI.

Definition at line 19 of file URI.php.

References $config, HTMLPurifier_AttrDef::expandCSSEscape(), and HTMLPurifier_AttrDef::parseCDATA().

Referenced by validate().

HTMLPurifier_AttrDef_CSS_URI::validate ( string,
config,
context 
)

Validates and cleans passed string according to a definition.

Parameters:
$stringString to be validated and cleaned.
$configMandatory HTMLPurifier_Config object.
$contextMandatory HTMLPurifier_AttrContext object.

Reimplemented from HTMLPurifier_AttrDef_URI.

Definition at line 9898 of file HTMLPurifier.standalone.php.

References $config, HTMLPurifier_AttrDef::expandCSSEscape(), HTMLPurifier_AttrDef::parseCDATA(), and validate().


The documentation for this class was generated from the following files: