mirror of
https://github.com/kennethreitz/requests-html.git
synced 2026-06-05 23:00:20 +00:00
+2
-2
@@ -36,7 +36,7 @@ class BaseParser:
|
||||
|
||||
@property
|
||||
def raw_html(self):
|
||||
"""Bytes representation of the HTML content."""
|
||||
"""Bytes representation of the HTML content (`learn more <http://www.diveintopython3.net/strings.html>`_."""
|
||||
if self._html:
|
||||
return self._html
|
||||
else:
|
||||
@@ -44,7 +44,7 @@ class BaseParser:
|
||||
|
||||
@property
|
||||
def html(self) -> bytes:
|
||||
"""Unicode representation of the HTML content."""
|
||||
"""Unicode representation of the HTML content (`learn more <http://www.diveintopython3.net/strings.html>`_)."""
|
||||
if self._html:
|
||||
return self._html.decode(self.encoding)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user