Open a new link in a pop up is failing with unexpected T_STRING
<p>Is it possible to pop up window from a json line.</p>

<p>Example, this link works fine:</p>

<pre><code>$json['msg'] = 'Welcome. Please, &lt;a href="http://mylink/?chat_session='.$rows['id'].'"&gt;click here&lt;/a&gt;!';
</code></pre>

<p>But when I tried to create a pop up for it, it says errors T string parsing, things like that.</p>

<p>For my pop up I tried using:</p>

<pre><code>&lt;script language="javascript" type="text/javascript"&gt;&lt;!--function mbetter(url) {
newwindow=window.open(url,'name','height=600,width=550');
if (window.focus) {newwindow.focus()}
return false;}// --&gt;&lt;/script&gt;
</code></pre>

<p>and for link</p>

<pre><code>$json['msg'] = 'Welcome. Please, &lt;a href="#" onClick="return mbetter('http://mylink/?chat_session='.$rows['id'].'')"&gt;click here&lt;/a&gt;!';
</code></pre>

<p>What could be causing this issue?</p>
