I have a $brick
which is an instance of Crawler
and this is how $brick->html()
starts:
<div>
<div>testplain 1</div>
</div>
I am fishing out the div containing testplain 1
with:
$content = $brick
->children()->first()
->children()->first();
but this is not nice. I know I could drop first()
but that would make it even more confusing IMO. Is there a way to say first <div>
of the first <div>
in a nicer way with DOMCrawler?