How to ignore/hide links and/or other tags inside or when using pdf export?
How to ignore/hide links and/or other tags inside or when using pdf export?

I have been searching for this answer everywhere but none of them have the same situation as I do.
All I need is dataTables pdf export to ignore 2 links inside a <th>:
In the example above, you see "verwijderen" , which is the text of a link, inside the <th>.
I don't want this to be shown in the PDF and so I need it to ignore all links which I generate dynamically inside the <th>.
I have seen other code if I needed to hide a last column / row etc but I wonder how one would ignore all links and/or other tags inside a <td> or a <th>.
Thanks in advance.
Answers
To further clarify my question, see screenshot below:
I need those 2 links to be either ignored or hidden when exporting PDF's of the table.it does ignore the link tags, but I also need its text value hidden.
Two options for this:
Allan