From bac88f1fc27aea2b894d077db235b2c49d8d109c Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sun, 14 Jan 2024 07:30:11 +0100 Subject: [PATCH] Use replaceAll to ensure all newlines are converted to HTML line breaks Signed-off-by: DL6ER --- scripts/pi-hole/js/settings-advanced.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pi-hole/js/settings-advanced.js b/scripts/pi-hole/js/settings-advanced.js index d56c56ea..76ed6e7e 100644 --- a/scripts/pi-hole/js/settings-advanced.js +++ b/scripts/pi-hole/js/settings-advanced.js @@ -54,7 +54,7 @@ function generateRow(topic, key, value) { : "") + "" + "

" + - utils.escapeHtml(value.description).replace("\n", "
") + + utils.escapeHtml(value.description).replaceAll("\n", "
") + "

" + "" + '
' +