I'm desperately trying to access content in a nested div :
<tr>
<th class="monthCellContent" style="vertical-align : top">
<div class="monthEventWrapper">
<div class="monthEvent">
<a class="event"
href="/event/1"
title="test title updated - test place - 09:00-10:00">
09:00
<span class="showForMediumInline">
test title updated test place
</span>
</a>
</div>
</div>
</th>
</tr>
I'm trying to access "09:00" and "test title updated test place" in the link.
I'm somehow stuck at
<div class="monthEventWrapper">
which I can access with
$items = $crawler->filter('div[class="monthEventWrapper"]');
print "\n found " . count($items) . " monthEventWrapper divs\n";
found 35 monthEventWrapper divs
but I cannot access
<div class="monthEvent">
with
$items = $crawler->filter('div[class="monthEvent"]');
print "\n found " . count($items) . " monthEvent divs\n";
found 0 monthEvent divs
I tried all variations around
foreach ($items as $item) {
foreach ($item->childNodes as $child) {
$value .= $paragraph->ownerDocument->saveHTML($child);
}
}
and
$crawler->filterXPath('//div[@class="monthEvent"]')
with no luck.
The html passes validations and there's no js.
Thanks !