extends |
HTMLPurifier_URIScheme |
---|
Validates tel (for phone numbers).
The relevant specifications for this protocol are RFC 3966 and RFC 5341, but this class takes a much simpler approach: we normalize phone numbers so that they only include (possibly) a leading plus, and then any number of digits and x'es.
Methods | ||||
---|---|---|---|---|
public
|
doValidate(HTMLPurifier_URI &$uri, HTMLPurifier_Config $config, HTMLPurifier_Context $context): bool
Validates the components of a URI for a specific scheme.
Validates the components of a URI for a specific scheme. Parameters
Returnssuccess or failure Implements |
# |
Methods inherited from HTMLPurifier_URIScheme |
---|
validate() |
Properties | |||
---|---|---|---|
public
|
|
$browsable = false
|
# |
public
|
|
$may_omit_host = true
|
# |
Properties inherited from HTMLPurifier_URIScheme |
---|
$default_port, $secure, $hierarchical, |