How to remove certain elements from a variable with html text using PHP
<p>So I have a string variable with some html inside of it.  I want to get rid of all h1 and h2 elements within this string variable.  How would I go about doing this.</p>

<p>I know I could do <code>strip_tags</code> to remove just the tags but I also want the actual content gone within those tags.</p>
