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?

mmasmmas Posts: 2Questions: 1Answers: 0

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

  • mmasmmas Posts: 2Questions: 1Answers: 0

    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.

  • allanallan Posts: 61,623Questions: 1Answers: 10,090 Site admin

    Two options for this:

    1. Use orthogonal data
    2. Use a formatting function to strip the bits you don't want.

    Allan

Sign In or Register to comment.