mirror of
https://github.com/kennethreitz/requests-html.git
synced 2026-06-05 14:50:20 +00:00
UserWarning fix
fixed UserWarning by passing default **bsargs to lxml
This commit is contained in:
+1
-1
@@ -117,7 +117,7 @@ class BaseParser:
|
||||
"""`lxml <http://lxml.de>`_ representation of the
|
||||
:class:`Element <Element>` or :class:`HTML <HTML>`.
|
||||
"""
|
||||
return soup_parse(self.html)
|
||||
return soup_parse(self.html, features='html.parser')
|
||||
|
||||
@property
|
||||
def text(self) -> _Text:
|
||||
|
||||
Reference in New Issue
Block a user