Is it possible to split HTML using DOMDocument?
- by Lynn Adrianna
Using DOMDocument, is it possible to split a block of HTML by text wrapped in tags and those that are not, while maintaining the order? Sorry, if this doesn't make sense. My example should make it clear.
Let's say I have the following block of HTML:
text1<b style="color:pink">text2</b>text3<b>text4</b> <b…