We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c923995 commit e2e78e4Copy full SHA for e2e78e4
1 file changed
readability/readability.py
@@ -123,6 +123,9 @@ def title(self):
123
def short_title(self):
124
return shorten_title(self._html(True))
125
126
+ def get_clean_html(self):
127
+ return clean_attributes(tounicode(self.html))
128
+
129
def summary(self, html_partial=False):
130
"""Generate the summary of the html docuemnt
131
@@ -530,7 +533,8 @@ def sanitize(self, node, candidates):
530
533
#el.attrib = {} #FIXME:Checkout the effects of disabling this
531
534
pass
532
535
- return clean_attributes(tounicode(node))
536
+ self.html = node
537
+ return self.get_clean_html()
538
539
540
class HashableElement():
0 commit comments