Merge pull request #12123 from eileenmcnaughton/membership_type
[civicrm-core.git] / js / Common.js
index 15f3528b2d6ebe0a41911306dfe0b52890c946f7..43cc526b7213c192b4d2e000f7634bbe9720f7b6 100644 (file)
@@ -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($("<div/>").html(text).text());
       return null;
     }
   };