Here is the HTML in question:
<div class="logo-wrapper">
<ul>
<li>
Contact: <strong>I need this</strong>
</li>
<li>
Location: <strong>and this</strong>
</li>
</ul>
</div>
My first instinct was to use eq(0) and eq(1) on the li elements, but there are occasions when either the contact or location may not be present and the order of li will change. I have also tried to use filterPreg() to select the 'Contact:' and 'Location:' text but this does not seem to work as I expected.
Short of using find('.logo-wrapper')->text()
and then using a standard regexp to get what I need, is there any way of keeping this inside QueryPath?