Skip to content

Commit

Permalink
fix embeds in body breaks all pages
Browse files Browse the repository at this point in the history
  • Loading branch information
marwoodandrew committed Oct 13, 2023
1 parent 4847ea3 commit ca0f498
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions newsroom/notifications/notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import superdesk
import pymongo.errors
import werkzeug.exceptions
from html import escape

from bson import ObjectId
from superdesk.utc import utcnow
Expand Down Expand Up @@ -71,6 +72,8 @@ def get_initial_notifications():
items = []
try:
items.extend(superdesk.get_resource_service('wire_search').get_items(item_ids))
for item in items:
item["body_html"] = escape(item["body_html"])
except KeyError: # wire disabled
pass
try:
Expand Down

0 comments on commit ca0f498

Please sign in to comment.