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 javascript built in replace function with a little help of regex, for example
$('#input').val().replace(/\n\r?/g, '')
this code will return all enters replaced with