Commit d9453448 authored by Yann Leboulanger's avatar Yann Leboulanger

remove bad .encode()

parent 8e9fe049
......@@ -50,7 +50,7 @@ def c14n(node, is_buggy):
s=s[:-1]+' />'
else:
s = s + "</" + node.name + ">"
return s.encode('utf-8')
return s
def normalise_attr(val):
return val.replace('&', '&amp;').replace('<', '&lt;').replace('"', '&quot;').replace('\t', '&#x9;').replace('\n', '&#xA;').replace('\r', '&#xD;')
......
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