Finish local DNS records

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2023-05-09 10:57:33 +02:00
parent 60737f9c39
commit a83411cb0b
3 changed files with 75 additions and 82 deletions

View File

@@ -17,7 +17,8 @@ function escapeHtml(text) {
"'": "&#039;",
};
if (text === null) return null;
// Return early when text is not a string
if (typeof text !== "string") return text;
return text.replace(/[&<>"']/g, function (m) {
return map[m];