瀏覽代碼

Update UIAlert.js

Nariman Jelveh 1 年之前
父節點
當前提交
5538649125
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/UI/UIAlert.js

+ 1 - 1
src/UI/UIAlert.js

@@ -50,7 +50,7 @@ function UIAlert(options){
         // icon
         h += `<img class="window-alert-icon" src="${html_encode(options.body_icon)}">`;
         // message
-        h += `<div class="window-alert-message">${options.message}</div>`;
+        h += `<div class="window-alert-message">${html_encode(options.message)}</div>`;
         // buttons
         if(options.buttons && options.buttons.length > 0){
             h += `<div style="overflow:hidden; margin-top:20px;">`;