htmlent
doesn’t replace spaces with %20 etc, so it’s not really useful.
In the snippet I replaced
return html_encode($url);
with
return rawurlencode($url);
and it works perfectly! Thanks!
htmlent
doesn’t replace spaces with %20 etc, so it’s not really useful.
In the snippet I replaced
return html_encode($url);
with
return rawurlencode($url);
and it works perfectly! Thanks!