Skip to content

Commit

Permalink
Fix content html elements parsing #5901
Browse files Browse the repository at this point in the history
  • Loading branch information
boryanagoncharenko committed Oct 30, 2024
1 parent 17105c7 commit 5cb1f65
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion website/flask_helpers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import dataclasses
import json

from markupsafe import Markup

from . import querylog

import flask
Expand Down Expand Up @@ -41,7 +44,7 @@ def gettext_with_fallback(x):
if locale != 'en' and res == x:
with force_locale('en'):
res = gettext(x)
return res
return Markup(res)


class EnhancedJSONEncoder(json.JSONEncoder):
Expand Down

0 comments on commit 5cb1f65

Please sign in to comment.