dominikbulaj
11/10/2015 - 12:09 PM

XPath / DOM (nodeValue with HTML)

XPath / DOM (nodeValue with HTML)

$content = $xpath->query('//*[@id="container-inner"]//*[@itemprop="articleBody"]')->item(0);
$contentHtml = $content->ownerDocument->saveHTML($content);