mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
Allow the <p>
tag in UIAlert
body
This commit is contained in:
parent
ed70314686
commit
e2dcc813ec
@ -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