X-Git-Url: https://git.cweiske.de/phinde.git/blobdiff_plain/298d81c60b6103cd29e9c219d243a5a8a8289f6f..fd98bb30be8970309c52d3fc3a1585d7454b370a:/src/phinde/LinkExtractor/Html.php diff --git a/src/phinde/LinkExtractor/Html.php b/src/phinde/LinkExtractor/Html.php index 0d6f3d8..4acd19f 100644 --- a/src/phinde/LinkExtractor/Html.php +++ b/src/phinde/LinkExtractor/Html.php @@ -21,10 +21,10 @@ class Html $dx = new \DOMXPath($doc); - $meta = $dx->evaluate('/html/head/meta[@name="robots" and @value]') + $meta = $dx->evaluate('/html/head/meta[@name="robots" and @content]') ->item(0); if ($meta) { - $robots = $meta->attributes->getNamedItem('value')->textContent; + $robots = $meta->attributes->getNamedItem('content')->textContent; foreach (explode(',', $robots) as $value) { if (trim($value) == 'nofollow') { //we shall not follow the links