rainabba / jquery-table2excel

jQuery Plugin to export HTML tabled to Excel Spreadsheet Compatible Files
593 stars 666 forks source link

<td> has colspan and rowspan, maybe this is a bug #86

Open wangx036 opened 6 years ago

wangx036 commented 6 years ago

line 75~86

if( rc.rows & rc.cols ) { tempRows += "" + $(q).html() + ""; } else { tempRows += "<td"; if( rc.rows > 0) { tempRows += " rowspan=\'" + rc.rows + "\' "; } if( rc.cols > 0) { tempRows += " colspan=\'" + rc.cols + "\' "; } tempRows += "/>" + $(q).html() + ""; }

for example: <td colspan="2" rowspan="3">test<td> 2&3=2=true tempRows = "<td>test</td>"