php data send to javascript problem
<p>php echo's &lt;br /&gt; to emphazise the javascript view to put a newline but when it comes to the javascript size it comes as &amp;lt. br / &amp;gt. and it is just displayed as it is. How can i send a &lt;br /&gt; as it is to the javascript size ?</p>

<p>the string that php sends</p>

<pre><code>hello &lt;br /&gt; world
</code></pre>

<p>but javascript receives it as</p>

<pre><code>hello &amp;lt;br /&amp;gt; world
</code></pre>

<p>How can i make javascript to understand a new line ?</p>

<p>echo "hello &lt;br /&gt; world";</p>

<p>sends the data to javascript </p>

<p>even </p>

<p>echo "hello \n world";</p>

<p>doesnt work</p>

<p>the javascript side</p>

<pre><code>var txt = ajaxRequest.responseText;
$("#output tr td div").text(txt);
</code></pre>
