strip_tags() function blacklist rather than whitelist
<p>I recently discovered the <code>strip_tags()</code> function which takes a string and a list of accepted html tags as parameters.</p>

<p>Lets say I wanted to get rid of images in a string here is an example:</p>

<pre><code>$html = '&lt;img src="example.png"&gt;';
$html = '&lt;p&gt;&lt;strong&gt;This should be bold&lt;/strong&gt;&lt;/p&gt;';
$html .= '&lt;p&gt;This is awesome&lt;/p&gt;';
$html .= '&lt;strong&gt;This should be bold&lt;/strong&gt;';

echo strip_tags($html,"&lt;p&gt;");
</code></pre>

<p>returns this:</p>

<pre><code>&lt;p&gt;This should be bold&lt;/p&gt;
&lt;p&gt;This is awesome&lt;/p&gt;
This should be bold
</code></pre>

<p>consequently I gotten rid of my formatting via <code>&lt;strong&gt;</code> and perhaps <code>&lt;em&gt;</code> in the future.</p>

<p>I want a way to blacklist rather than whitelist something like:</p>

<pre><code>echo blacklist_tags($html,"&lt;img&gt;");
</code></pre>

<p>returning:</p>

<pre><code>&lt;p&gt;&lt;strong&gt;This should be bold&lt;strong&gt;&lt;/p&gt;
&lt;p&gt;This is awesome&lt;/p&gt;
&lt;strong&gt;This should be bold&lt;strong&gt;
</code></pre>

<p>Is there any way to do this?</p>
