From a0a0f60d3d36dada627f29aa1cd461c90f6f8958 Mon Sep 17 00:00:00 2001 From: Naomi Date: Mon, 12 Mar 2018 22:53:33 +0200 Subject: [PATCH] CRM-21838 - Strips html from CRM.alert when falling back to alert() --- js/Common.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/Common.js b/js/Common.js index 15f3528b2d..43cc526b72 100644 --- a/js/Common.js +++ b/js/Common.js @@ -1260,7 +1260,8 @@ if (!CRM.vars) CRM.vars = {}; if (title.length) { text = title + "\n" + text; } - alert(text); + // strip html tags as they are not parsed in standard alerts + alert($("
").html(text).text()); return null; } }; -- 2.25.1