diff --git a/secretary.py b/secretary.py index 209714d..cfb3b6f 100644 --- a/secretary.py +++ b/secretary.py @@ -350,7 +350,7 @@ class Render(object): styles_cache = {} # cache styles searching html_text = markdown(markdown_text) - xml_object = parseString('%s' % html_text) + xml_object = parseString('%s' % html_text.encode('ascii', 'xmlcharrefreplace')) # Transform HTML tags as specified in transform_map # Some tags may require extra attributes in ODT.