From fb85dfbedc50dd1a79df136b36e983cb06a46853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Kaczmarek?= Date: Mon, 25 Apr 2022 10:21:00 +0200 Subject: [PATCH] https://github.com/SheetJS/sheetjs/issues/2660 - fix Invalid character (https://www.w3.org/TR/REC-xml/#charsets) --- bits/22_xmlutils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bits/22_xmlutils.js b/bits/22_xmlutils.js index d4f378a..71f3e20 100644 --- a/bits/22_xmlutils.js +++ b/bits/22_xmlutils.js @@ -60,7 +60,7 @@ var unescapexml/*:StringConv*/ = /*#__PURE__*/(function() { }; })(); -var decregex=/[&<>'"]/g, charegex = /[\u0000-\u0008\u000b-\u001f]/g; +var decregex=/[&<>'"]/g, charegex = /[\u0000-\u0008\u000b-\u001f\uFFFE-\uFFFF]/g; function escapexml(text/*:string*/)/*:string*/{ var s = text + ''; return s.replace(decregex, function(y) { return rencoding[y]; }).replace(charegex,function(s) { return "_x" + ("000"+s.charCodeAt(0).toString(16)).slice(-4) + "_";}); -- 2.34.1