Thanx for your script! I searched PHP parser without any external PHP-extensions (like libxml). But I need extend your classes. And I do it by this way:
1) I added additional properti for simple_html_dom class:
2) In class simple_html_dom I found text
and replaced it by
3) And now I can use my own extended classes:
So we can extend default classes without touching original source code. I hope you'll like my idea and you'll use it in your new releases