diff --git a/newspaper/parsers.py b/newspaper/parsers.py index a4d030c0..560d4052 100644 --- a/newspaper/parsers.py +++ b/newspaper/parsers.py @@ -63,7 +63,7 @@ def fromstring(cls, html): # down due to one article (out of potentially many in a `Source`) try: # lxml does not play well with encoding tags - if html.startswith('', '', html, flags=re.DOTALL) cls.doc = lxml.html.fromstring(html) return cls.doc