Merge branch 'devel' into tweak/replace_domains

This commit is contained in:
DL6ER
2020-11-09 22:28:13 +01:00
2 changed files with 5 additions and 1 deletions

View File

@@ -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) {
"&#039;": "'"
};
if (text === null) return null;
return text.replace(/&(?:amp|lt|gt|quot|#039);/g, function (m) {
return map[m];
});