Appending a string with "<br>" tag doesn't work
<p>I tried all methods possible and i simply can't add a break line inside a string which is stored in a variable and then used inside a specific function.</p>

<p>HTML code:</p>

<pre><code>&lt;body&gt;
&lt;p id="msg"&gt;&lt;/p&gt;
&lt;/body&gt;
</code></pre>

<p>Jquery code:</p>

<pre><code>&lt;script&gt;
var showText = function (target, message, index, interval) {   
  if (index &lt; message.length) {
    $(target).append(message[index++]);
    setTimeout(function () { showText(target, message, index, interval); }, interval);
  }
}
var x = "Hello there stranger!"+"&lt;br&gt;"+"How are you?";
$(function () {

  showText("#msg", x, 0, 130);   

});
&lt;/script&gt;
</code></pre>

<p>It outputs the <code>&lt;br&gt;</code> tag as a string, instead to add a break line. Please help...</p>