From e2dcc813ec8154b2101a9afa265a28314b796ba7 Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Thu, 25 Apr 2024 13:18:28 -0700 Subject: [PATCH] Allow the `

` tag in `UIAlert` body --- src/UI/UIAlert.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/UI/UIAlert.js b/src/UI/UIAlert.js index 7016e138..c5763ea0 100644 --- a/src/UI/UIAlert.js +++ b/src/UI/UIAlert.js @@ -52,6 +52,10 @@ function UIAlert(options){ santized_message = santized_message.replace(/<strong>/g, ''); santized_message = santized_message.replace(/<\/strong>/g, ''); + // replace sanitized

with

+ santized_message = santized_message.replace(/<p>/g, '

'); + santized_message = santized_message.replace(/<\/p>/g, '

'); + let h = ''; // icon h += ``;