I need a little help here with string.
Consider if I have this HTML code:
Yak yak<p>
<table border=0 width=100% cellspacing=0 cellpadding=0><tr><td class=regular>blah blah blah</td></tr><tr><td class=something_else>some more of nothing</td></tr></table>
Yak yak<p>
How can I get rid of the table and all of its contents? I mean from the table open and close tag, and EVERYTHING inside it (including the text). I basically wish to erradicate the table.
strip_tags is great, but it leaves the text inside the tables intact.
Thanks!