Page 1 of 1
remove special tag with content
Posted: Fri Jun 04, 2010 5:51 am
by playwright
I want to remove a div tag with all its content..so far i' m able to remove tags that don't contain any other tags inside..e.g <b>bla bla bla </b>..However the div tag i want to remove is like <div class="" style=""><tag>bla bla...<other tag/>....</tag></div>..any ideas??
Re: remove special tag with content
Posted: Fri Jun 04, 2010 9:57 am
by phdatabase
OK. So what's the problem? what code are you using to try this?
Re: remove special tag with content
Posted: Fri Jun 04, 2010 11:34 am
by omniuni
Would strip_tags work?
Re: remove special tag with content
Posted: Fri Jun 04, 2010 11:41 am
by phdatabase
It would depend on what he's trying to do... which is why I asked to have the code posted.