I have a html snippet that looks like this (of course surrounded by other html):
Header: Tex
Header:
Tex
Find the p element with the class. Then use
where $e is the element with the class.
$e
For better alternatives to SimpleHtmlDom, see Best Methods to parse HTML