diff --git a/dashboard_project/templates/base.html b/dashboard_project/templates/base.html index 27ef9eb..74f0507 100644 --- a/dashboard_project/templates/base.html +++ b/dashboard_project/templates/base.html @@ -299,6 +299,15 @@ }); function createToast(messageText, messageTags) { + function escapeHtml(unsafe) { + return unsafe + .replace(/&/g, "&") + .replace(//g, ">") + .replace(/"/g, """) + .replace(/'/g, "'"); + } + let toastClass = ""; let autohide = true; let delay = 5000; @@ -329,7 +338,7 @@