Menu
I am trying to pass some variables using JSON, I retrieve the data from database, and pass it through AJAX to my script
the problem occurs, when I pass strings which have “new line” in them to eval, even though I use nl2br and remove “n” from the string on the server side before passing the data, I still get error
Firefox Error Consol says: unterminated string literal,,, but when I display the JSON string using alert, it looks OK()… any idea how to solve this?
thanks in advance