diff --git a/edit.html b/edit.html index 5df54d54..4684b534 100644 --- a/edit.html +++ b/edit.html @@ -61,7 +61,7 @@ diff --git a/js/localization.js b/js/localization.js index 20c0be7d..d976ab62 100644 --- a/js/localization.js +++ b/js/localization.js @@ -96,7 +96,11 @@ function tNodeList(nodes) { node.appendChild(document.createTextNode(value)); break; case 'html': - node.insertAdjacentHTML('afterbegin', value); + // localized strings only allow having text nodes and links + node.textContent = ''; + [...tHTML(value, 'div').childNodes] + .filter(a => a.nodeType === a.TEXT_NODE || a.tagName === 'A') + .forEach(n => node.appendChild(n)); break; default: node.setAttribute(type, value); diff --git a/manage.html b/manage.html index b3bb0545..1a5cae15 100644 --- a/manage.html +++ b/manage.html @@ -117,7 +117,7 @@