Commit 779b6469 authored by Chris Lamb's avatar Chris Lamb 👀
Browse files

presenters/html.py: Don't use unsafe cgi.escape method as its ``quote`` kwarg...


presenters/html.py: Don't use unsafe cgi.escape method as its ``quote`` kwarg -- which enables escaping of quotation marks -- is False by default.

Signed-off-by: Chris Lamb's avatarChris Lamb <lamby@debian.org>
parent 284b0a45
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -34,8 +34,8 @@
import io
import os
import re
import cgi
import sys
import html
import codecs
import hashlib
import contextlib
@@ -304,7 +304,7 @@ def convert(s, ponct=0, tag=''):
            t.write('<em>%s</em>' % conv)
            i += len(conv)
        else:
            t.write(cgi.escape(c))
            t.write(html.escape(c))
            i += 1

        if WORDBREAK.count(c) == 1: