Hello! I'm using simplehtmldom to parse html and I'm stuck in parsing plaintext located outside of any tag (but between two different tags):
<div class="text_small">
<b>Аdress:</b> 7 Hange Road<br>
<b>Phone:</b> 415641587484<br>
<b>Contact:</b> Alex<br>
<b>Meeting Time:</b> 12:00-13:00<br>
</div>
Is it possible to get these values of Adress, Phone, Contact, Meeting Time? I wonder if there is a opportunity to pass CSS Selectors into nextSibling/previousSibling functions...
foreach($html->find('div.text_small') as $div_descr)
{
foreach($div_descr->find('b') as $b)
{
if ($b->innertext=="Аdress:") {//someaction
}
if ($b->innertext=="Phone:") { //someaction
}
if ($b->innertext=="Contact:") { //someaction
}
if ($b->innertext=="Meeting Time:") { //someaction
}
}
}
What I should use instead "someaction" ?
upd. Yes, I don't have an access for editing the target page. Otherwise, would it be worth to? :)