title: Invisible character at the end of line using line break
body: <p>I need your help,</p>
  
  <p>It appears as though, an extra character or whitespace is added with the regex replace method of:</p>
  
  <pre><code>string.replace(/\n/g,'&lt;br&gt;')
  </code></pre>
  
  <p>Is is possible to get rid of this? or is that just the way that this method does that?</p>
  
  <p>Thanks</p>