Closed stephanki closed 6 years ago
I don't think that's an issue. Needing to write characters as html entities usually just means you declared the wrong character set. Pretty much everybody uses an utf-8 character set these days, with XML or HTML. In this context, the only characters that need to be escaped are '&' and '<'. You don't need to encode any other character using html entities.
Currently only the characters <>& are escaped. Using cgi.escape() and encode works for much more characters:
see yattag.simpledoc.html_escape()