mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Use replaceAll to ensure all newlines are converted to HTML line breaks
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -54,7 +54,7 @@ function generateRow(topic, key, value) {
|
||||
: "") +
|
||||
"</h3>" +
|
||||
"<p>" +
|
||||
utils.escapeHtml(value.description).replace("\n", "<br>") +
|
||||
utils.escapeHtml(value.description).replaceAll("\n", "<br>") +
|
||||
"</p>" +
|
||||
"</div>" +
|
||||
'<div class="box-body">' +
|
||||
|
||||
Reference in New Issue
Block a user