diff --git a/requests_html.py b/requests_html.py index 7964625..82a72c2 100644 --- a/requests_html.py +++ b/requests_html.py @@ -117,7 +117,7 @@ class BaseParser: """`lxml `_ representation of the :class:`Element ` or :class:`HTML `. """ - return soup_parse(self.html) + return soup_parse(self.html, features='html.parser') @property def text(self) -> _Text: