Add missing HTML5 class

This commit is contained in:
Jeremy Benoist
2017-06-30 16:32:37 +02:00
parent 5ac82f3c87
commit 05089bbd03
3 changed files with 13 additions and 9 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ namespace Readability;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerInterface;
use Psr\Log\NullLogger;
use HTML5Lib\Parser;
/**
* Arc90's Readability ported to PHP for FiveFilters.org
@@ -284,7 +285,7 @@ class Readability implements LoggerAwareInterface
$this->html = mb_convert_encoding($this->html, 'HTML-ENTITIES', 'UTF-8');
if (!($this->parser === 'html5lib' && ($this->dom = \HTML5_Parser::parse($this->html)))) {
if (!($this->parser === 'html5lib' && ($this->dom = Parser::parse($this->html)))) {
libxml_use_internal_errors(true);
$this->dom = new \DOMDocument();