title: Copy HTML table in rich text on click
body: <p>I want to copy the HTML table from my page as rich text to clipboard and be ready to paste the contents in excel on a single click.</p>
  
  <p>I found a awesome code in Stackoverflow 
  <a href="https://stackoverflow.com/questions/2044616/select-a-complete-table-with-javascript-to-be-copied-to-clipboard">Select a complete table with Javascript (to be copied to clipboard)</a></p>
  
  <p>However, the above code will only select the content in the table. Can any one please help to tweak the code to make it to copy table as rich text (table cells contains color and need to be copied) and paste it in excel or any other compatible window. </p>