I have a textarea where I insert \\n when user presses enter. Code from this textarea is sent to a WCF service via jQuery.ajax(). I cannot save
\\n
jQuery.ajax()
The following will replace all instances of \n with a :
\n
while (message.indexOf("\\n") !== -1) { message = message.replace("\\n", ""); }