Question for khalidali63

wxdqz

New Member
Hello
In your answer to a question about replacing quotation marks you included this code in your answer.

data = data.replace(/\"/g,"\\\"");
data = data.replace(/'/g,"\\'");

I wonder if you would be kind enough to explain exactly what is happening here and the significance of the forward and back(ward) slashes. Thanks.
 
Back
Top