jQuery JavaScript Encoding HTML
<p>How on earth do you encode HTML with jQuery/JavaScript?</p>

<p>Havn't found any working solution after hours of Googling and surfing this site.</p>

<p>This:</p>

<pre><code>jQuery('&lt;div/&gt;').text(value).html();
</code></pre>

<p>does not work with jQuery!</p>
