mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 04:38:28 +00:00
Merge branch 'devel' into tweak/replace_domains
This commit is contained in:
@@ -17,6 +17,8 @@ function escapeHtml(text) {
|
||||
"'": "'"
|
||||
};
|
||||
|
||||
if (text === null) return null;
|
||||
|
||||
return text.replace(/[&<>"']/g, function (m) {
|
||||
return map[m];
|
||||
});
|
||||
@@ -31,6 +33,8 @@ function unescapeHtml(text) {
|
||||
"'": "'"
|
||||
};
|
||||
|
||||
if (text === null) return null;
|
||||
|
||||
return text.replace(/&(?:amp|lt|gt|quot|#039);/g, function (m) {
|
||||
return map[m];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user