title: Exporting HTML table data to excel not working
body: <p>I have a small HTML table which i want to export to excel</p>
  
  <ul>
  <li>My table has col-span,so when i click on export on excel t exports the data to excel but col-span not exported properly</li>
  <li>my table is exporting like <a href="https://i.stack.imgur.com/smdpY.png" rel="nofollow noreferrer">this</a></li>
  </ul>
  
  <p><strong>Code</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() {
    $("#export").click(function() {
      $("#test").table2excel({
        filename: "test.xls"
      });
    });
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css"&gt;
  &lt;script src="https://cdn.rawgit.com/rainabba/jquery-table2excel/1.1.0/dist/jquery.table2excel.min.js"&gt;&lt;/script&gt;
  &lt;table class="table table-hover table-bordered" id="test"&gt;
    &lt;tr&gt;
      &lt;th colspan="2"&gt;Month&lt;/th&gt;
      &lt;th colspan="2"&gt;Savings&lt;/th&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;January&lt;/td&gt;
      &lt;td&gt;100&lt;/td&gt;
      &lt;td&gt;January&lt;/td&gt;
      &lt;td&gt;50&lt;/td&gt;
  
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;February&lt;/td&gt;
      &lt;td&gt;80&lt;/td&gt;
      &lt;td&gt;January&lt;/td&gt;
      &lt;td&gt;70&lt;/td&gt;
    &lt;/tr&gt;
  
  &lt;/table&gt;
  &lt;button id="export" class="btn btn-default commonButton"&gt;
    &lt;i class='fas fa-file-export'&gt;&lt;/i&gt;&amp;nbsp;Export
   &lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>How can i export the HTML Table as it is in excel</p>
  
  <p><strong>I am using <code>table2excel</code> j query plugin</strong> i am open to use any other plugin also, which can give me correct result</p>
  
  <p>link of plugin i am using :- <a href="https://github.com/rainabba/jquery-table2excel" rel="nofollow noreferrer">https://github.com/rainabba/jquery-table2excel</a></p>