Revert "Allow the <p> tag in UIAlert body"

This reverts commit e2dcc813ec.
This commit is contained in:
Nariman Jelveh 2024-04-25 13:18:37 -07:00
parent e2dcc813ec
commit 3cce0e88df

View File

@ -52,10 +52,6 @@ function UIAlert(options){
santized_message = santized_message.replace(/&lt;strong&gt;/g, '<strong>');
santized_message = santized_message.replace(/&lt;\/strong&gt;/g, '</strong>');
// replace sanitized <p> with <p>
santized_message = santized_message.replace(/&lt;p&gt;/g, '<p>');
santized_message = santized_message.replace(/&lt;\/p&gt;/g, '</p>');
let h = '';
// icon
h += `<img class="window-alert-icon" src="${html_encode(options.body_icon)}">`;