I have the following function that exports an html to excel:
function generateexcel(tableid) { var table= document.getElementById(tableid); var html = ta
I have the same issue, just replace encodeURIComponent for escape.
function generateexcel(tableid) { var table= document.getElementById(tableid); var html = table.outerHTML; window.open('data:application/vnd.ms-excel,' + escape(html)); }
It works for me...