PHP Source:
<
!DOCTYPE
html
>
<
html
>
<
body
>
<?php
// Variable to check
$url=
"http://www.w3schoolsÅÅ.com"
;
// Encode characters
$url = filter_var($url, FILTER_SANITIZE_ENCODED);
echo
$url;
?>
<
/body
>
<
/html
>
Result:
Privacy Policy