From b3accbf9e0b56742be4e07f67cfa325921dcfccd Mon Sep 17 00:00:00 2001 From: Cameron Fischer Date: Thu, 12 Aug 2021 11:46:11 -0400 Subject: [PATCH] Fakedom: use text encoder for html text (#5950) --- core/modules/utils/fakedom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/utils/fakedom.js b/core/modules/utils/fakedom.js index ed371100e..590a7ffe0 100755 --- a/core/modules/utils/fakedom.js +++ b/core/modules/utils/fakedom.js @@ -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("");