mirror of
https://github.com/taroved/pol
synced 2025-05-27 19:40:09 -07:00
fix inner html + test
This commit is contained in:
parent
9ac0f13581
commit
576da9ca7a
2
feed.py
2
feed.py
@ -17,8 +17,6 @@ def element_to_string(element):
|
||||
s = [element.text] if element.text else []
|
||||
for sub_element in element:
|
||||
s.append(etree.tostring(sub_element))
|
||||
if sub_element.tail:
|
||||
s.append(element.tail)
|
||||
return ''.join(s)
|
||||
|
||||
def _build_link(html, doc_url, url):
|
||||
|
Loading…
x
Reference in New Issue
Block a user