Getting the Text Between HTML Tags in PHP
Suppose you’re automatically parsing a webpage, and you come across the following kind of thing:
blah blah
some starting text
some useful content
some ending text
blah blah
We want to parse out the useful content from among the non-useful stuff, and we know there’s some starting text and some ending text that wraps the useful content.
A better example:
I like chicken
<div [...]

