mirror of
https://github.com/HeyPuter/puter
synced 2024-11-15 06:15:47 +00:00
Allow the <p>
tag in UIAlert
body
This commit is contained in:
parent
a572a0a640
commit
51a6d1ea1d
@ -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)}">`;
|
||||
|
Loading…
Reference in New Issue
Block a user