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()
You can use a simple javascript string function.
string.replace("\n", "")