forked from sheetjs/sheetjs
- fix Invalid character (https://www.w3.org/TR/REC-xml/#charsets)
This commit is contained in:
parent
c641efbd0a
commit
fb85dfbedc
@ -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) + "_";});
|
||||
|
Loading…
Reference in New Issue
Block a user