seanybravo
IS-IT--Management
I am trying to send some category information using a querystring unfortunateley some categories have a & in. I have managed to sort the spaces our but I am still having trouble with the andpersand.
Can anyone please explain why this is failing to work.
Thanks
Code:
strSend.replace(/ /g, "+")
strSend.replace(/&/gi, "%26")
Can anyone please explain why this is failing to work.
Thanks