|
|
@ -171,7 +171,7 @@ class Document:
|
|
|
|
An internal method, which can be overridden in subclasses, for example,
|
|
|
|
An internal method, which can be overridden in subclasses, for example,
|
|
|
|
to disable or to improve DOM-to-text conversion in .summary() method
|
|
|
|
to disable or to improve DOM-to-text conversion in .summary() method
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
return clean_attributes(tounicode(self.html))
|
|
|
|
return clean_attributes(tounicode(self.html, method='html'))
|
|
|
|
|
|
|
|
|
|
|
|
def summary(self, html_partial=False):
|
|
|
|
def summary(self, html_partial=False):
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|