Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I want to parse sections of HTML which may have embedded tables sometimes (and sometimes not).
I want to get rid of the stuff between the <table> tags (recursively).
e.g. if the text wasCode: Select all
Here is some text
<table cellspacing=20 style="font:verdana;">
<tr>
<td>
Here is an embedded table as well
<table><tr><td>embedded</td></tr></table>
</td>
</tr>
</table>
and here is some more...Here is some text and here is some more...
strip_tags gets rid of the html but leaves the stuff between
thanks
Scott
Pimptastic | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]