Commit 05866d75 authored by Romain Loth's avatar Romain Loth

add ascii to utf8 conversion after escaping html, (better for subsequent python3 steps)

parent 3521a09f
......@@ -323,7 +323,7 @@ class extract:
def toHTML(self,string):
escaped = escape(string).encode("ascii", "xmlcharrefreplace")
escaped = escape(string).encode("ascii", "xmlcharrefreplace").decode()
print(type(escaped))
return escaped
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment