I have url in which the parameters contain '&' characters ..now i have to do an ajax call but the server sends exception on that..so the solution is to replace the '&' of parameters by %26 and then make the call...
e.g...
url = http://localhost.com/?q=java&industry="IT&web"&location="New-york & Florida"
The result must be...
= http://localhost.com/?q=java&industry="IT%26web"&location="New-york %26 Florida"
You must use:
query = encodeURIComponent (query);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With