Javascript: print html as plain text : <p>I'm trying to print plain html from javascript and can't figured out how to do so. 
Example:</p>

<pre><code>$('#elem').html('This is a normal string'); // --&gt; This is a normal string

$('#elem').html('This &lt;b&gt;contains&lt;/b&gt; html')
//Current-&gt; This contains html   (contains is bold)
//Wanted-&gt; This &lt;b&gt;contains&lt;/b&gt; html
</code></pre>

<p>I want to do this because I'm working with comments written by users and don't want html tags to apply if they put some in their comments. But for other reasons I need to see the tags.</p>

<p>Thanks for your help!</p>
