Hi,
I want to handle the special characters in
java script.
Actually I am getting a
string which will have the characters like < or
> or \ .
I would like to convert them into < or > or \\ respectively.
I am trying to search a generic library function which can do this for me.
A simple thing is what I can do is to use string.replace("\", "\\");
But i dot want to do that, I need a generic function which can handle all of these special chars in one function call.
Could and one please help me out.