i have following function by using this i am exporting my html to Csv file. few days/months ago it was working fine in google chrome browser (still its working fine
My solution is for excel file export:
var xslData = new Blob([$('#printableSearchResults').html()], { type: 'text/vnd.ms-excel' }); var uri = URL.createObjectURL(xslData);