XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
HTMLPurifier_AttrDef_CSS_URI Class Reference
Inheritance diagram for HTMLPurifier_AttrDef_CSS_URI:
Inheritance graph

Public Member Functions

 __construct ()
 
 validate ($uri_string, $config, $context)
 
- Public Member Functions inherited from HTMLPurifier_AttrDef_URI
 __construct ($embeds_resource=false)
 
 make ($string)
 
 validate ($uri, $config, $context)
 
- Public Member Functions inherited from HTMLPurifier_AttrDef
 make ($string)
 
 parseCDATA ($string)
 
 validate ($string, $config, $context)
 

Additional Inherited Members

- Public Attributes inherited from HTMLPurifier_AttrDef
 $minimized = false
 
 $required = false
 
- Protected Member Functions inherited from HTMLPurifier_AttrDef
 expandCSSEscape ($string)
 
 mungeRgb ($string)
 
- Protected Attributes inherited from HTMLPurifier_AttrDef_URI
 $embedsResource
 
 $parser
 

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.

Member Function Documentation

HTMLPurifier_AttrDef_CSS_URI::validate (   $uri_string,
  $config,
  $context 
)

Definition at line 19 of file URI.php.

References $config, $result, HTMLPurifier_AttrDef\expandCSSEscape(), and HTMLPurifier_AttrDef\parseCDATA().

Here is the call graph for this function:


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