Class HTMLPurifier_URIScheme_data
Implements data: URI for base64 encoded images supported by GD.
- HTMLPurifier_URIScheme
- HTMLPurifier_URIScheme_data
public
Bool
|
#
doValidate( $uri & $uri, $config $config, $context $context )
Validates the components of a URI for a specific scheme. |
public
|
validate()
|
public
boolean
|
$browsable | true |
#
Whether or not URIs of this schem are locatable by a browser http and ftp are accessible, while mailto and news are not. |
public
array
|
$allowed_types | array(
// you better write validation code for other types if you
// decide to allow them
'image/jpeg' => true,
'image/gif' => true,
'image/png' => true,
) |
|
public
boolean
|
$may_omit_host | true |
#
Whether or not the URI may omit a hostname when the scheme is explicitly specified, ala file:///path/to/file. As of writing, 'file' is the only scheme that browsers support his properly. |
$default_port,
$hierarchical
|