$scheme
$scheme
HTML Purifier's internal representation of a URI.
getSchemeObj(\HTMLPurifier_Config $config, \HTMLPurifier_Context $context) : \HTMLPurifier_URIScheme
Retrieves a scheme object corresponding to the URI's scheme/default
\HTMLPurifier_Config | $config | |
\HTMLPurifier_Context | $context |
Scheme object appropriate for validating this URI
validate(\HTMLPurifier_Config $config, \HTMLPurifier_Context $context) : bool
Generic validation method applicable for all schemes. May modify this URI in order to get it into a compliant form.
\HTMLPurifier_Config | $config | |
\HTMLPurifier_Context | $context |
True if validation/filtering succeeds, false if failure
isLocal(\HTMLPurifier_Config $config, \HTMLPurifier_Context $context) : bool
Returns true if this URL might be considered a 'local' URL given the current context. This is true when the host is null, or when it matches the host supplied to the configuration.
Note that this does not do any scheme checking, so it is mostly only appropriate for metadata that doesn't care about protocol security. isBenign is probably what you actually want.
\HTMLPurifier_Config | $config | |
\HTMLPurifier_Context | $context |
isBenign(\HTMLPurifier_Config $config, \HTMLPurifier_Context $context) : bool
Returns true if this URL should be considered a 'benign' URL, that is:
\HTMLPurifier_Config | $config | |
\HTMLPurifier_Context | $context |