Commit 779b6469 authored by Chris Lamb's avatar Chris Lamb 💬

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
......@@ -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:
......
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