title: jQuery textarea replace carriage returns with plain text
body: <p>I have an input with text that user paste in it. And I have to find all carriage returns chars and <strong>replace it with plain text "\n"</strong>. "\n" should be visible in output textarea. <a href="http://jsfiddle.net/zmf7ztyk/" rel="nofollow">Example</a></p>
  
  <p>I wrote the code, but output area display my "\n" as HTML tag and make it carriage returns again. But if I use text func I can't carriage returns chars. Please help.</p>
  
  <pre><code>$("#convert").click( function () {
      var txtValue = $('#input').val();
      $('#output').html(txtValue.replace(/\r?\n/g, "\n"));
  });
  </code></pre>
  
  <p><code>#input</code> and <code>#output</code> are textfields.</p>