title: Replace part of string in predefined text container
body: <p>I need to replace a hard coded <code>&lt;br&gt;</code> inside a given text with a line-break kind of <code>\n</code> (not written line-break).</p>
  
  <p>Example:</p>
  
  <pre><code>var testText = "Lorem ipsum&lt;br&gt;dolor sit&lt;br&gt;amed"
  testText.replace("&lt;br&gt;", /\n/g);
  
  $("#MyText").text(testText);
  </code></pre>
  
  <p>Does not work. What am I doing wrong??</p>
  
  <p>Demo: <a href="https://jsfiddle.net/SchweizerSchoggi/3bzrf3tj/" rel="nofollow">https://jsfiddle.net/SchweizerSchoggi/3bzrf3tj/</a></p>