Skip to content

Commit 753846d

Browse files
Escaped < symbol in Table XML Col Names
< symbols don't parse in the attribute of a XML tag. Fixed this for the Table.xml file.
1 parent ed9de9c commit 753846d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/excel-gen.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,14 +371,14 @@ function ExcelGen(options) {
371371
if (this.options.header_row) {
372372
var row = [];
373373
var outerThis = this;
374-
var colCount = 1;
374+
var colCount = 1;
375375
this.options.header_row.children("th,td").each(function () {
376376
//header text gets stored for table
377377
var txt = $(this).textOrValue().trim().replace(/ +(?= )/g, '');
378-
if ((txt == "") && (outerThis.options.type == "table")) txt = "Column " + colCount;
379-
outerThis.headers.push(txt);
378+
if ((txt == "") && (outerThis.options.type == "table")) txt = "Column " + colCount;
379+
outerThis.headers.push(txt.replace(/[<]/g,""));
380380
row.push(outerThis.sharedStrings.add(txt));
381-
colCount++;
381+
colCount++;
382382
});
383383
this.sheet.rows.push(row);
384384
}

0 commit comments

Comments
 (0)