PHP DomDocument Get Text After Tag
I have this in my php file.
'; $dom=neText
I need this text...next p
... and thisSolution 1:
Use DOMXPath:
$xpath = new DOMXpath($domDocument);
foreach ($xpath->query('//div/text()') as $textNode) {
echo $textNode->nodeValue;
}
Post a Comment for "PHP DomDocument Get Text After Tag"