ExcellentExport.js

Check on jordiburgos.com and GitHub.

Test page

Test table:
Column 1 Column "cool" 2 Column 3 Column 4
100,111 200 030 áéíóú
400 500 Chinese chars: 解决导出csv中文乱码问题 àèìòù
Text More text Text with new line ç ñ ÄËÏÖÜ äëïöü

Export to Excel
Export to CSV - UTF8
Export to CSV - Using semicolon ";" separator - UTF8

NEW API!

Export to Excel: XLS format
Export to Excel: XLSX format
Export to CSV
Export to Excel: XLSX filtering columns and rows

NEW API from Arrays!

Export to XLSX from array
Export to XLS from array
Export to CSV from array

Colspan and Rowspan

Table with merged cells (colspan and rowspan):
Merged Header (colspan=2) Column 3
Merged Cell (rowspan=2) B2 C2
B3 C3
A4 Merged Cell (colspan=2)

Export colspan/rowspan to XLSX
Export colspan/rowspan to CSV