Allow the <p> tag in UIAlert body

This commit is contained in:
Nariman Jelveh 2024-04-25 13:19:03 -07:00
parent a572a0a640
commit 51a6d1ea1d

View File

@ -52,6 +52,10 @@ 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)}">`;