Strip all html tags with jquery?
<p>How to strip out all html tags in jquery. the function  like strip_tags in PHP</p>

<p>eg: there is some contents as the following:</p>

<pre><code> &lt;div id='test'&gt;This is &lt;b&gt;bold&lt;/b&gt; and this &lt;div&gt;is&lt;/div&gt; &lt;i&gt;italic&lt;/i&gt;.&lt;/div&gt;
</code></pre>

<p>Now i want to change it to <code>&lt;div id='test'&gt;This is bold and this is italic.&lt;/div&gt;</code></p>
