diff --git a/lib/utils/utils.js b/lib/utils/utils.js index 5fd178292..bd7fb60a9 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(/[<>&'"\x7F\x00-\x1F]/g, function (c) { + return text.replace(/[<>&'"\x7F\x00-\x08\x0A-\x0C\x0E-\x1F]/g, function (c) { switch (c) { case '<': return '<'; case '>': return '>';