jQuery How to apply text() to a variable
<p>I would like to apply the jQuery text() method in order to escape html content containing characters like &lt; or >
This same content is "prepended" to a div block, that is why I need &lt; and > to be escaped</p>

<p>I can't figure out how to do so in this example: <a href="http://jsfiddle.net/n28uf/2/" rel="nofollow">http://jsfiddle.net/n28uf/2/</a></p>

<pre><code>&lt;div class="container"&gt;&lt;/div&gt;

jQuery(function(){
    var  content = '&lt;hello world&gt;';
    jQuery('.container').prepend(content); 
    // Where should I apply the .text() method?
}); 
</code></pre>

<p>I tried this:</p>

<pre><code>    jQuery('.container').prepend(jQuery.text(content));
</code></pre>

<p>but I get this error message: </p>

<pre><code>    Uncaught RangeError: Maximum call stack size exceeded 
</code></pre>

<p><a href="http://jsfiddle.net/n28uf/2/" rel="nofollow">http://jsfiddle.net/n28uf/2/</a> any idea of what change I should bring to the code to have it working properly?</p>

<p>thanks</p>
