title: export as .xls file not work when large data
body: <p>I am using the javascript code for export html table to .xls file.Its work in crome and when data is not large.But when data is large then it shows me error like</p>
  
  <p><img src="https://i.stack.imgur.com/c2Jh5.png" alt="enter image description here"></p>
  
  <p>The code which i have used for export the table as .xls file is as below:</p>
  
  <pre><code>function exportDiv() {
      //working on crome perfectly       
          var dt = new Date();
          var day = dt.getDate();
          var month = dt.getMonth() + 1;
          var year = dt.getFullYear();
          var hour = dt.getHours();
          var mins = dt.getMinutes();
          var postfix = day + "." + month + "." + year + "_" + hour + "." + mins;
          var a = document.createElement('a');
          var data_type = 'data:application/vnd.ms-excel';
          var table_div = document.getElementById('tbl-1');
          var table_html = table_div.outerHTML.replace(/ /g, '%20');
          a.href = data_type + ', ' + table_html;
          a.download = 'exported_table_' + postfix + '.xls';
          a.click();
          e.preventDefault();
  
  }
  </code></pre>
  
  <p>I have also sufficient 4 gb ram so i think its not memory limit problem.</p>
  
  <p>Can you please help me for how to export large data?
  <strong>Edit:</strong> I ahve used this way also </p>
  
  <pre><code> var table_html=encodeURIComponent(table_div.outerHTML);
  </code></pre>
  
  <p>But still same error come.</p>