html_filter: Don't wrap result in <html><body>
This commit is contained in:
parent
98b494fcc2
commit
e9b3628fcc
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user