Ok, I'm actually trying to replace text.
Basically, I am needing to replace all instances of this: | with a blank string ''
However, this isn't working:
langName = langName.replace(/|/g, '');
Also, would be best if I could also replace all of these instances within the string, with a '' also:
" double quote
' single quote
/ back slash
\ forward slash
And any other html entity characters. Arrggg.
Can someone please help me here? Perhaps it can be turned into a String.prototype function so I can use it more than once?
Thanks :)