I use simplehtmldom to parse html, and I am stuck in analyzing plaintext that is 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>
Can I get these values Address, Phone, Contact, Meeting time? I wonder if it is possible to pass CSS Selectors to nextSibling / previousSibling ...
foreach($html->find('div.text_small') as $div_descr)
{
foreach($div_descr->find('b') as $b)
{
if ($b->innertext=="dress:") {
}
if ($b->innertext=="Phone:") {
}
if ($b->innertext=="Contact:") {
}
if ($b->innertext=="Meeting Time:") {
}
}
}
What should I use instead of "someaction"?
update Yes, I do not have access to edit the landing page. Otherwise, is it worth it? :)
source
share