API - XOOPS 2.5.11 Beta 2
By monxoops.fr
HTMLPurifier_AttrDef_CSS_URI Class Reference
Inheritance diagram for HTMLPurifier_AttrDef_CSS_URI:
Collaboration diagram for HTMLPurifier_AttrDef_CSS_URI:

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
 validate ($string, $config, $context)
 
 parseCDATA ($string)
 
 make ($string)
 

Additional Inherited Members

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

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.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Member Function Documentation

◆ validate()

validate (   $uri_string,
  $config,
  $context 
)
Parameters
string$uri_string
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Returns
bool|string

Reimplemented from HTMLPurifier_AttrDef_URI.

Here is the call graph for this function:

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