PHP convert javascript when echo
<p>I have following PHP echo statement:</p>

<p><code>echo "&lt;td&gt;&lt;a href='delete-news.php?deleteID=".$id." onclick='return confirm('Really delete?');'&gt;Delete&lt;/a&gt;&lt;/td&gt;";
</code></p>

<p>which is convert to html as: </p>

<p><code>&lt;td class="last-td nth-8"&gt;&lt;a delete?');'="" confirm('really="" return="" href="delete-news.php?deleteID=5 onclick="&gt;Delete&lt;/a&gt;&lt;/td&gt;</code></p>

<p>As you can see something has gone wrong?
What is the problem? I have already tried swaping <code>" "</code> for single <code>' '</code>.</p>
