File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments