How can I export HTML in a cell using [buttons] excel export
How can I export HTML in a cell using [buttons] excel export
![sjw01](https://secure.gravatar.com/avatar/cd7994618f966847904c2ffee11386c0/?default=https%3A%2F%2Fvanillicon.com%2Fcd7994618f966847904c2ffee11386c0_200.png&rating=g&size=120)
I have a column which has a html link in it.
json_encode('<a href="url.com">'.$row['name'] . '</a>')
I want this exported to Excel when the user uses the export button.
I have tested and the HTML is not being included in the cell during export.
If I use stripHtml: false
- it adds the html link as text in the cell
Is this possible? Do I need to do something special?
This discussion has been closed.
Answers
Hi @sjw01 ,
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin
http://live.datatables.net/lidequra/56/
Filter by 210214
Export to Excel
Link Gone
Checkout this thread asking the same question:
https://datatables.net/forums/discussion/39436
It will take some custom code to accomplish. I didn't see any threads where someone actually wrote the customer code. However it wasn't an exhaustive search.
Kevin