title: How to remove the hidden tags from innerHTML string
body: <p>I have HTML tables with data. There are some columns which are hidden, based on report generation. 
  I am generating an Excel file from these table. For generating the Excel file, I have to provide the <code>innerHTML</code> data to the Excel function. The issue is that, <code>innerHTML</code> data contains hidden tags as well. </p>
  
  <p>This results in Excel file showing the hidden column data. Is there a way I can remove the hidden tags' data?</p>