Ignore html data in html data- * attribute when exporting to csv jQuery datatables

I am using export buttons jQuery data-tables

to export data to CSV from my tables.

The table has a header column where each header is duplicated as a hyperlink with a data content attribute. This attribute contains data in html tags such as <strong></strong>

and lists

.

The problem is that when I export the data to CSV, this extra data, which should only be displayed when clicked and not relevant to the CSV, is also exported to the CSV header column.

I want to stop this and just get the title.
I am sorry, if I do not know, I will explain this further as I am asked.

+3


source to share





All Articles