1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-09-03 19:38:02 +00:00

Fakedom: use text encoder for html text (#5950)

This commit is contained in:
Cameron Fischer
2021-08-12 11:46:11 -04:00
committed by GitHub
parent 99249a3160
commit b3accbf9e0

View File

@@ -235,7 +235,7 @@ Object.defineProperty(TW_Element.prototype, "innerHTML", {
if(node instanceof TW_Element) {
b.push(node.outerHTML);
} else if(node instanceof TW_TextNode) {
b.push($tw.utils.htmlEncode(node.textContent));
b.push($tw.utils.htmlTextEncode(node.textContent));
}
});
return b.join("");