I can use the AJAX call to read a text file, but the problem is it read the \n\t, and the symbol '\' (Backslash), it is not necessary for me, How can I ignore it to pure text msg....?
+1
A:
Something like this?
text = text.replace (/\s+/g, " ")
text = text.replace (/\\'/g, "'")
Kinopiko
2009-10-26 03:59:02
that's nice, I want to ignore the "\" too, how can I do it?
Ted Wong
2009-10-26 04:04:09