Jump to content

[SOLVED] Stripping DIV Tags, Losing It's Contents


zoozle

Recommended Posts

Hi guys, i'm having some trouble stripping "div" tags from an xml document. I've tried using strip_tags, preg_replace and str_replace, they all work for removing the tags but the problem is i'm losing the contents within them as well. Then I tried just removing the opening or closing tag, not both, that worked but it's obviously not what I need.

 

I have successfully done this with "p" tags with no problems, so im not sure what's happening. Any suggestions would be much appreciated.

 

Thank you.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.