af_readability: encoding may be lower case
This commit is contained in:
parent
6b954c0a83
commit
37b2bca99e
|
@ -123,7 +123,7 @@ class Af_Readability extends Plugin {
|
||||||
if (!$tmpdoc->loadHTML($tmp))
|
if (!$tmpdoc->loadHTML($tmp))
|
||||||
return $article;
|
return $article;
|
||||||
|
|
||||||
if ($tmpdoc->encoding != 'UTF-8') {
|
if (strtolower($tmpdoc->encoding) != 'utf-8') {
|
||||||
$tmpxpath = new DOMXPath($tmpdoc);
|
$tmpxpath = new DOMXPath($tmpdoc);
|
||||||
|
|
||||||
foreach ($tmpxpath->query("//meta") as $elem) {
|
foreach ($tmpxpath->query("//meta") as $elem) {
|
||||||
|
|
Loading…
Reference in New Issue