special character on <a href doesn't work

Topics: Troubleshooting
Jul 26, 2011 at 5:43 AM

Hi gurus,

I have encountered a weird issue, I can't place a link on <a href tag which contains equal sign(=), like this <a href="http://test.com/?b=1&h=true">

Any ideas?

Regards,

Arnel Gracela

Jul 26, 2011 at 6:54 AM

Hello,

Instead of "&" need to use "&amp;"

Try this:  <a href="http://test.com/?b=1&amp;h=true">

Jul 26, 2011 at 8:23 AM

Hi Inna,

 

Thanks for the info but actually that is not the issue, the issue is the equal sign, i'll try the equivalent ascii code for equal if it works, i'll get back if it does or didnt.

 

Regards,

Arnel

Jul 26, 2011 at 8:28 AM

You should get the error like this "'=' is an unexpected token. The expected token is ';'." But the real problem is that you use "&" in your URL,  need to use "&amp;"         
      

Jul 26, 2011 at 8:38 AM

Hi Inna,

Yeah you are correct, it works now, thank you very much.

Regards,

Arnel Gracela