diff --git a/packages/common/error.js b/packages/common/error.js
index 786cc72f03379b49ffcf6bc8f0fb17e10442c9e5..7ffd56ae122bb103174964779bf050ece2034dae 100644
--- a/packages/common/error.js
+++ b/packages/common/error.js
@@ -35,7 +35,7 @@ export const handleXhrError = (jqXHR, textStatus, errorThrown, icon = "sad") =>
 
     notify({
         "summary": i18n.t('error.summary'),
-        "body": stripHTML(body),
+        "body": escapeHTML(stripHTML(body)),
         "icon": icon,
         "type": "danger",
     });
@@ -84,7 +84,7 @@ export const handleFetchError = async (error, summary = "", icon = "sad") => {
 
     notify({
         "summary": summary === "" ? i18n.t('error.summary') : summary,
-        "body": stripHTML(body),
+        "body": escapeHTML(stripHTML(body)),
         "icon": icon,
         "type": "danger",
     });