Commit bd7a8fb7 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fixup! cgi.escape is deprecated in Python 3.2 and removed in Python 3.8.

parent e0fcd76d
# -*- coding: utf-8 -*-
from six import unichr
from zLOG import ERROR
from six.moves.html_parser import HTMLParser
from six.moves.html_parser import HTMLParser, HTMLParseError
import re
from Products.PythonScripts.standard import html_quote
import codecs
......@@ -294,7 +294,7 @@ class StrippingParser(HTMLParser):
self.original_charset = charset
v = charset_parser.sub(
CharsetReplacer(self.default_encoding), v)
self.result.append(' %s="%s"' % (k, html_quote(v, True)))
self.result.append(' %s="%s"' % (k, html_quote(v)))
#UNUSED endTag = '</%s>' % tag
if safeToInt(self.valid.get(tag)):
......
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