jQuery, new line and enter button
<p>I'm using following code for textarea:</p>

<pre><code>$('#ajaxSendMessage').live('keyup', function(event) {
    if (event.keyCode == 13) {
        controller.sendMessage($(this).val(), $("#ajaxAnswerTo").val());
    }
});
</code></pre>

<p>This code works, but <code>$("#ajaxAnswerTo").val()</code> have new line characte when I click enter...
For example: I entered: helo world and then moved cursor to helo world, updated it to hello and clicked enter. The result code will be: hell\no world.</p>

<p>How to remove this \n?</p>
