html_filter: Don't wrap result in <html><body>

This commit is contained in:
miruka 2019-04-18 11:32:32 -04:00
parent 98b494fcc2
commit e9b3628fcc

View File

@ -61,7 +61,10 @@ class HtmlFilter(QObject):
for el in tree.iter("a"): for el in tree.iter("a"):
el = self._append_img_to_a(el) el = self._append_img_to_a(el)
return str(etree.tostring(tree, encoding="utf-8"), "utf-8") result = b"".join((etree.tostring(el, encoding="utf-8")
for el in tree[0].iterchildren()))
return str(result, "utf-8")
@pyqtProperty("QVariant") @pyqtProperty("QVariant")