diff --git a/product/PortalTransforms/transforms/safe_html.py b/product/PortalTransforms/transforms/safe_html.py index e283fd70668bfc8788c9e802575831b97ad9ddac..c08d85f7f7517d1d354c3e1a457fc687d6bbf320 100644 --- a/product/PortalTransforms/transforms/safe_html.py +++ b/product/PortalTransforms/transforms/safe_html.py @@ -244,7 +244,7 @@ class StrippingParser(HTMLParser): from six.moves.html_entities import name2codepoint entitydefs = HTMLParser.entitydefs = {'apos':u"'"} for k, v in six.iteritems(name2codepoint): - entitydefs[k] = chr(v) + entitydefs[k] = unichr(v) # (end) copied from Python-2.6's HTMLParser.py if name in self.entitydefs: x = ';'