Overview
Classes
Interfaces
Functions
Exceptions
Function
\
sanitize_iri
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()
Open source code
Parameters Summary
string
$iri