From ceefa2a363c38518ca2aa3459f16eb70e0aeff4f Mon Sep 17 00:00:00 2001 From: Bofh Date: Tue, 13 Dec 2022 01:14:09 +0100 Subject: [PATCH] Fix toast._show was not showing html text correctly --- js/base.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/base.php b/js/base.php index e6b184f..41d229e 100644 --- a/js/base.php +++ b/js/base.php @@ -294,6 +294,9 @@ const toast = { div.id = id; div.className = 'toast-container'; div.setAttribute('onclick', 'this.remove()'); + text = text.replaceAll('&','&').replaceAll('<','<').replaceAll('>','>'); + text = html2text(text); + text = text.replaceAll('&','&').replaceAll('<','<').replaceAll('>','>'); div.innerHTML = '

'+ ''+capitalize(text)+'

'; if (document.getElementById('toast-container') !== null)