Skip to content

Commit ef0ce53

Browse files
author
明城
committed
Merge pull request #1 from girvan/master
make readability more portable
2 parents 8ea705f + 1898f59 commit ef0ce53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Readability.inc.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public function getContent() {
242242
// 多个数据,以数组的形式返回
243243
return Array(
244244
'title' => $ContentTitle ? $ContentTitle->nodeValue : "",
245-
'content' => mb_convert_encoding($Target->saveHTML(), DOM_DEFAULT_CHARSET, "HTML-ENTITIES")
245+
'content' => mb_convert_encoding($Target->saveHTML(), Readability::DOM_DEFAULT_CHARSET, "HTML-ENTITIES")
246246
);
247247
}
248248

0 commit comments

Comments
 (0)