i want to scrap the pages but In that pages they provide values like that below, but i take element using elementby Tagname and i cant take doubt quotes values next of strong tag, can anyone please help me.
JavaScript
x
<br>
<br>
<strong>Location</strong>
"India,calculata
"
<br>
<br>
Advertisement
Answer
Based on the current code (from comment), you just need to change from accessing the current elements value to the next child value (using nextSibling
)…
JavaScript
$table = $dom->getElementById('JobDesc3606816961');
foreach($table->getElementsByTagName('strong') as $tablelist) {
echo $tablelist->nextSibling->nodeValue;
}