excellentexport icon indicating copy to clipboard operation
excellentexport copied to clipboard

customize the style of <td>

Open yakiang opened this issue 12 years ago • 3 comments

Hi, cool repo! In my table, some <td> may contain href (might be javacript:void(0)) , some may be set to display:none, and I don't want them in the final .xls file. So I'm wondering if there's any way to do it, by an option for example ?

yakiang avatar Aug 14 '14 03:08 yakiang

BTW, seems the .xls file doesn't contain the <th> row ?

yakiang avatar Aug 14 '14 07:08 yakiang

Even i have same issue, one column in HTML table has as href link, it dont want the hyperlinks to be copied to excel export. Is there any way to do that?

bharatgyl avatar Dec 05 '14 16:12 bharatgyl

If the developer (owner or contributor) does something like this:

 tab_text= tab_text.replace(/<A[^>]*>|<\/A>/g, "");//remove if u want links in your table
 tab_text= tab_text.replace(/<img[^>]*>/gi,""); // remove if u want images in your table
 tab_text= tab_text.replace(/<input[^>]*>|<\/input>/gi, ""); // removes input params

On the table text, it could work

phun-ky avatar Jan 09 '15 07:01 phun-ky