Hi there,
I'm processing a text from an XMLHttpRequest. Here's what it looks like:
When debugging, str looks like this:
str = callHelloFunction(\"param1\", \"param2\")
Now what I need to do is to replace the "\" to "". I'm trying the following:
str = str.replace(/\\/, "")
and I have no luck with this!!! for some readson, none of the "\" get replaced! Your help is much appreciated
I'm processing a text from an XMLHttpRequest. Here's what it looks like:
Code:
str = req.responseText
When debugging, str looks like this:
str = callHelloFunction(\"param1\", \"param2\")
Now what I need to do is to replace the "\" to "". I'm trying the following:
str = str.replace(/\\/, "")
and I have no luck with this!!! for some readson, none of the "\" get replaced! Your help is much appreciated