From 4133623e5f9bbb4a0c0cabc549d45ecba6ee049a Mon Sep 17 00:00:00 2001 From: Jon Apgar <5638966+jonapgar@users.noreply.github.com> Date: Tue, 20 Feb 2018 15:44:54 -0500 Subject: [PATCH] rm control chars --- lib/utils/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/utils.js b/lib/utils/utils.js index 1924e9c88..843025bab 100644 --- a/lib/utils/utils.js +++ b/lib/utils/utils.js @@ -136,7 +136,7 @@ var utils = module.exports = { return path.path + '/_rels/' + path.name + '.rels'; }, xmlEncode: function(text) { - return text.replace(/[<>&'"]/g, function (c) { + return text.replace(/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/g, function(c) { switch (c) { case '<': return '<'; case '>': return '>';