Function sanitize_iri
A wrapper for filter_var($url, FILTER_SANITIZE_URL)
that can handle URLs
with international characters (a.k.a. IRIs)
Note: The returned value will still be an IRI, not a URL. To convert to URL, feed the result of this function to iri_to_url()
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs.php
string |
$iri |
The IRI to sanitize. |
string|boolean
|
The sanitized version of the IRI |