title: Javascript String Replace issue
body: <p>I have the following code like</p>
  <pre><code>&lt;div id=&quot;profile_description&quot;&gt;
   &lt;p&gt;Some Text with\nNew Line&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  <p>Here is my Javascript code for replace \n to &lt; br &gt;console.log($('#profile_description_field').html());</p>
  <pre><code>var str = $('#profile_description').html();
  console.log(str);
  str = str.replace(/(?:\r\n|\r|\n)/g, '&lt;br&gt;');
  console.log(str);
  </code></pre>
  <p>The output is always <code>Some Text with\nNew Line</code></p>
  <p>What I doing wrong here? I have tried so many things ...
  I hope you have a idea. Thank you so much!</p>