Get escaped html from td and put it into input as value
<p>I have html</p>

<pre><code>&lt;table&gt;
&lt;tr&gt;&lt;td id="cell"&gt;&amp;lt;a href=&amp;quot;&amp;quot;&amp;gt;Google.com&amp;lt;/a&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;

&lt;div id="to"&gt;&lt;/div&gt;
</code></pre>

<p>And I have javascript</p>

<pre><code>$(document).ready(function() {
   var html = '&lt;input type="text" value="'+$("#cell").html()+'" /&gt;'
   $("#to").append(html);
});
</code></pre>

<p>I don't know why, but when executing this code I'm getting only <code>&lt;a href=</code> in input. In firebug's inspector input html appears as <code>&lt;input type="text" a&amp;gt;="" &amp;gt;google.com&amp;lt;="" value="&amp;lt;a href=" &gt;</code> As you can see, <code>$quot;</code> are replaced with <code>"</code> - this is the problem.</p>

<p>I've tried using <code>.text()</code> instead of <code>.html()</code> - almost the same situation.</p>

<p>What is my mistake?</p>

<p>Thank you.</p>
