Hi i'm having problems with my json scripts. When I retrieve data that
contains new lines it causes an error from firebug. I've used a couple
of replace like .replace("\n", "
"), .replace(/\n/g, "\\n") but it still didn't work. Please have a
feed back on this thanks!
-bryan
www.nachofoto.com
-Lost - 01 Jul 2007 00:59 GMT
> Hi i'm having problems with my json scripts. When I retrieve data that
> contains new lines it causes an error from firebug. I've used a couple
> of replace like .replace("\n", "
> "), .replace(/\n/g, "\\n") but it still didn't work. Please have a
> feed back on this thanks!
You have your newlines escaped incorrectly. I believe:
.replace(/\\n/mg, '\n')
...is what you want.

Signature
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.