Skip to content

Commit

Permalink
Bugfix: startup issues for MacOS App 1815 (#1816)
Browse files Browse the repository at this point in the history
fix for #1815
  • Loading branch information
relativisticelectron authored Jul 21, 2022
1 parent 157c158 commit 78e51f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cryptoadvance/specter/htmlsafebabel.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from flask_babel import Babel, get_translations
from jinja2.utils import markupsafe
from html.parser import HTMLParser
import html


class HTMLSafeBabel(Babel):
Expand Down Expand Up @@ -30,4 +30,4 @@ def reescape_string(escaped_string):
Existing entities need to be decoded first to avoid double-encoding.
"""
return markupsafe.Markup.escape(HTMLParser().unescape(escaped_string))
return markupsafe.Markup.escape(html.unescape(escaped_string))

0 comments on commit 78e51f7

Please sign in to comment.