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.
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.