mirror of
https://github.com/HeyPuter/puter.git
synced 2026-01-26 15:09:15 -06:00
Allow the <p> tag in UIAlert body
This commit is contained in:
@@ -52,6 +52,10 @@ function UIAlert(options){
|
||||
santized_message = santized_message.replace(/<strong>/g, '<strong>');
|
||||
santized_message = santized_message.replace(/<\/strong>/g, '</strong>');
|
||||
|
||||
// replace sanitized <p> with <p>
|
||||
santized_message = santized_message.replace(/<p>/g, '<p>');
|
||||
santized_message = santized_message.replace(/<\/p>/g, '</p>');
|
||||
|
||||
let h = '';
|
||||
// icon
|
||||
h += `<img class="window-alert-icon" src="${html_encode(options.body_icon)}">`;
|
||||
|
||||
Reference in New Issue
Block a user