paquettg/php-html-parser

How to get text of nested tags?

lustmordtheblackpost opened this issue · 2 comments

For example I need to get content between <h1> tags, but there nested some random tags:
<h1><p><strong>TEXT</strong></p></h1>

You need use ->innerHtml()

It's works! Thanks