title: Coping text from textarea to div in jQuery
body: <p>I'd like to copy text from textarea to div using this code but there are line breaks missing.</p>
  
  <pre><code>$("#some-div").text($("#some-textarea").val().replace('/\n/g', '&lt;br /&gt;'));
  </code></pre>
  
  <p>What's going wrong?
  Thanks</p>