diff options
Diffstat (limited to 'src/xhtml.py')
-rw-r--r-- | src/xhtml.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xhtml.py b/src/xhtml.py index f0c55978..fee5a118 100644 --- a/src/xhtml.py +++ b/src/xhtml.py @@ -82,7 +82,7 @@ def convert_links_to_plaintext(text): parent.text += link_text parent.remove(child) previous_child = child - return ET.tostring(xml.getroot()) + return ET.tostring(xml.getroot(), encoding=str) def clean_text(string): """ |