Allow the <p> tag in UIAlert body

This commit is contained in:
Nariman Jelveh 2024-04-25 13:18:28 -07:00
parent ed70314686
commit e2dcc813ec

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)}">`;