javascript replace allowed html tags
<p>I need to use javascript to remove all html tags, except for those I explicitly allow. I have a form that only allows the following tags and their respective end tags:</p>

<pre><code>&lt;b&gt; &lt;strong&gt; &lt;i&gt; &lt;em&gt; &lt;u&gt; &lt;br&gt; &lt;pre&gt;
&lt;blockquote&gt; &lt;ol&gt; &lt;ul&gt; &lt;li&gt; 
&lt;a href="http://www.somesite.com"&gt;link&lt;/a&gt;
</code></pre>

<p>All other markup should be removed. I have been searching but I have only found instances where all tags are removed or a single tag is removed. Can this be done simply? I cannot use PHP, must be javascript. Any solutions?</p>

<p>Thanks!</p>
