I would like to select the string in a div tag in php. I plan to do it with regular expression. But is there a better way?
Like this: Hello there <div>how are you?</div>. Please <div>send my regards</div> to Allan.
I would like to retrieve all texts in and together with div tag like:
"<div>how are you?</div>"
"<div>send my regards</div>"
May I know how to do?