Use xmlcharrefreplace for qute:* encoding
This commit is contained in:
parent
03c7a0ce2a
commit
5bf32d80fe
@ -58,7 +58,8 @@ def _get_html(title, snippet):
|
||||
Return:
|
||||
HTML content as bytes.
|
||||
"""
|
||||
return _HTML_TEMPLATE.format(title=title, body=snippet).encode('UTF-8')
|
||||
return _HTML_TEMPLATE.format(title=title, body=snippet).encode(
|
||||
'UTF-8', errors='xmlcharrefreplace')
|
||||
|
||||
|
||||
class QuteSchemeHandler(SchemeHandler):
|
||||
|
Loading…
Reference in New Issue
Block a user