From ae413a5335296c12d01f5a9e104d8c9583a5617a Mon Sep 17 00:00:00 2001 From: Shadab Zafar Date: Sun, 30 Sep 2018 23:15:58 +0530 Subject: [PATCH] Force html parsing in get_clean_html() Fixes #108 --- readability/readability.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readability/readability.py b/readability/readability.py index 91f8a94..ecf3f5b 100755 --- a/readability/readability.py +++ b/readability/readability.py @@ -167,7 +167,7 @@ class Document: An internal method, which can be overridden in subclasses, for example, to disable or to improve DOM-to-text conversion in .summary() method """ - return clean_attributes(tounicode(self.html)) + return clean_attributes(tounicode(self._html(True))) def summary(self, html_partial=False): """