escaping '&' on the urls?
Posted: Wed Jun 27, 2007 1:59 pm
I am trying to validate my site as transitional html but i get a warning because i have a link that looks something like
http://somesite.com/somefile.php?bla=4&bloo=9
i am using Tidy firefox plugin and it sugests this:
The link points to an external site, can i replace '&' by '&' in the url without fearing uncorrect query string handling on the external site?
http://somesite.com/somefile.php?bla=4&bloo=9
i am using Tidy firefox plugin and it sugests this:
Code: Select all
<a href="http://www.domain.com/cgi?x=123&y=456">
Good <a href="http://www.domain.com/cgi?x=123&y=456">
All special characters in HREF should be encoded. "&" is a reserved character to begin an page.
Solution:
Replace "&" by "&".