Skip to content

Commit

Permalink
Ensure we replace all "\n" by "<br>" when showing descriptions
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <[email protected]>
  • Loading branch information
DL6ER committed Dec 1, 2023
1 parent 95b2da9 commit e34c51c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/pi-hole/js/settings-advanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,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">' +
Expand Down

0 comments on commit e34c51c

Please sign in to comment.