Skip to content

Commit

Permalink
Let new lines through xmlEncode function. See github issue 296 (excel…
Browse files Browse the repository at this point in the history
  • Loading branch information
holly-weisser committed Jun 21, 2017
1 parent c39b4dd commit 88de8ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ var utils = module.exports = {
},
xmlEncode: function(text) {
// eslint-disable-next-line no-control-regex
return text.replace(/[<>&'"\x7F\x00-\x08\x0A-\x0C\x0E-\x1F]/g, function(c) {
return text.replace(/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/g, function(c) {
switch (c) {
case '<': return '&lt;';
case '>': return '&gt;';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "exceljs",
"version": "0.4.12",
"version": "0.4.13",
"description": "Excel Workbook Manager - Read and Write xlsx and csv Files.",
"private": false,
"license": "MIT",
Expand Down

0 comments on commit 88de8ae

Please sign in to comment.