From ed35fc2d4085d7425a18ab30462235f5745fc4f7 Mon Sep 17 00:00:00 2001 From: Alan Date: Thu, 6 Jan 2022 16:54:10 +0800 Subject: [PATCH] Roo/htmleditor/TidyEntities.js --- Roo/htmleditor/TidyEntities.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Roo/htmleditor/TidyEntities.js b/Roo/htmleditor/TidyEntities.js index 6ab2e0ddef..47ac984381 100644 --- a/Roo/htmleditor/TidyEntities.js +++ b/Roo/htmleditor/TidyEntities.js @@ -607,9 +607,9 @@ Roo.htmleditor.TidyEntities = { * @return {String} Entity encoded text. */ encodeRaw: function(text, attr) { - return text.replace(attr ? attrsCharsRegExp : textCharsRegExp, function(chr) { - return baseEntities[chr] || chr; - }); + return text.replace(attr ? this.attrsCharsRegExp : this.textCharsRegExp, function(chr) { + return this.baseEntities[chr] || chr; + }, this); }, /** * Encoded the specified text with both the attributes and text entities. This function will produce larger text contents -- 2.39.2