Class HTMLPurifier_AttrDef_CSS_URI
Validates a URI in CSS syntax, which uses url('http://example.com')
-
HTMLPurifier_AttrDef
-
HTMLPurifier_AttrDef_URI
-
HTMLPurifier_AttrDef_CSS_URI
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.
Located at xoops_trust_path/libs/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/URI.php
Methods summary
public
|
|
public
|
#
validate( $string $uri_string, $config $config, $context $context )
Validates and cleans passed string according to a definition.
Validates and cleans passed string according to a definition.
Parameters
- $uri_string
$string String to be validated and cleaned.
- $config
$config Mandatory HTMLPurifier_Config object.
- $context
$context Mandatory HTMLPurifier_AttrContext object.
Overrides
|