diff --git a/scripts/pi-hole/js/utils.js b/scripts/pi-hole/js/utils.js index 489f9bed..90938ede 100644 --- a/scripts/pi-hole/js/utils.js +++ b/scripts/pi-hole/js/utils.js @@ -19,7 +19,7 @@ function escapeHtml(text) { if (text === null) return null; - return text.replaceAll(/[&<>"']/, function (m) { + return text.replaceAll(/[&<>"']/g, function (m) { return map[m]; }); } @@ -43,7 +43,7 @@ function unescapeHtml(text) { if (text === null) return null; return text.replaceAll( - /&(?:amp|lt|gt|quot|#039|Uuml|uuml|Auml|auml|Ouml|ouml|szlig);/, + /&(?:amp|lt|gt|quot|#039|Uuml|uuml|Auml|auml|Ouml|ouml|szlig);/g, function (m) { return map[m]; }