how do i remove style from other than img tag in javascript
<p>I want to remove style from all html tags but not from img tag in javascript.</p>

<p>I am using like this ..</p>

<pre><code>content.replace(/(&lt;[^&gt;]+) style=".*?"/g, '$1');
</code></pre>

<p>but it replace style from all the tags.</p>
