I think w3c validates the markup and does NOT execute your JavaScript code.

On Thu, Feb 17, 2011 at 6:09 PM, Ronak <[email protected]> wrote:

> Hii
>
> I want to replace "&" with "&amp;" in each link of my webpage
> dynamically.
>
> My page is not validated under w3c guideline, it shows me error on "&"
> in my url link,
>
> for that I have made one javascript function to replace "&amp;" in
> place of "&" but it won't work.
>
> here is the example for what I want:
>
> Normal URL: www.foo.com/aa.aspx?show=t&its=false
> in this url "&" is invalid in w3c guideline
>
> I have converted that link through javascript and now it looks like:
> Converted URL: www.foo.com/aa.aspx?show=t&amp;its=false
>
> but when i clicked it then browser shows same url as converted it will
> not convert &amp;
>
> so can anyone have idea for how to resolve it then please reply soon,
>
> thanks in advance

Reply via email to