views:

34

answers:

1

Hi!

I have an url-encoded url (so with & replaced to &), but I want to replace all the occurences of & back to & using javascript. Currently I'm using myStr.replace("/&/g", "&"), but that doesn't work (replaces nothing).

Thanks,

Lex

+2  A: 
myStr.replace(/&/g, "&")
S.Mark
Thanks, I was going to answer my own question, just found it out myself... Thank you!
Lex