Php – How to remove text from divs in DOMDocument()
I have a string of html, containing text within some divs. I need to extract that text from the divs. (For curiosity sake, these extra divs appeared when a user copy/pasted into a contenteditable div) Starting html: <div> Text1 <div>…