title: Export to Excel - Issue in Chrome and Firefox
body: <p>I have tables and using JS to export to Excel.  The <code>&lt;table&gt;</code> tag has some descriptions and class <code>(&lt;table class="someClassName" border="0" cellpadding="0" cellspacing="0"&gt;)</code>.  </p>
  
  <p>When it exports to Excel, the excel file contains table's tags and values (<code>&lt;table&gt; &lt;tr&gt; &lt;td&gt;value&lt;/td&gt;&lt;td&gt;value&lt;/td&gt;...&lt;/tr&gt;</code>), which looks like a mess!  However, if I remove all the descriptions and class inside <code>&lt;table&gt;</code>, when exporting to Excel, it looks fine (without <code>&lt;table&gt; &lt;tr&gt; &lt;td&gt;...</code> tags).</p>
  
  <p>An issue is how to make the exporting Excel look fine without remove descriptions and class inside <code>&lt;table&gt;</code>?  Thanks!</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;div class="dvData"&gt;
      &lt;table class="header_detail" border="0" cellpadding="0" cellspacing="0"&gt;
          &lt;tr&gt;
              &lt;th&gt;Billing System&lt;/th&gt;
              &lt;th&gt;Market Code&lt;/th&gt;
              &lt;th&gt;Payment Amount&lt;/th&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;RED&lt;/td&gt;
              &lt;td&gt;222&lt;/td&gt;
              &lt;td&gt;$103.00&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;BLUE&lt;/td&gt;
              &lt;td&gt;111&lt;/td&gt;
              &lt;td&gt;$13.00&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;GREEN&lt;/td&gt;
              &lt;td&gt;555&lt;/td&gt;
              &lt;td&gt;$143.00&lt;/td&gt;  
          &lt;/tr&gt;
      &lt;/table&gt;
      &lt;/div&gt;
  &lt;br /&gt;
  &lt;input type="button" value="Export" class="toExcelButton" data-target="dvData" /&gt; 
  </code></pre>
  
  <p>JS</p>
  
  <pre><code>  $(document).ready(
          function()
          {
              $(".toExcelButton").click(function(e) {
              e.stopPropagation();
              var table = $("." + $(this).data('target'));
              window.open('data:application/vnd.ms-excel,' + $(table).html());
              e.preventDefault();
              });
          }
      );
  </code></pre>