individual column searching - search in stripped HTML only

individual column searching - search in stripped HTML only

fuxifuxi Posts: 3Questions: 2Answers: 0

I'm refering to: https://datatables.net/examples/api/multi_filter.html
I implemented individual column searching and need to extend it: There is a column which is displaying a button with HTML-Attributes/Classes applied. The Problem: i need to strip html in order it will search the button's caption only. Any ideas how?

Answers

  • colincolin Posts: 15,163Questions: 1Answers: 2,588

    Hi @fuxi ,

    You can use columns.render to return the stripped out the text for the search results. If that doesn't help, 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

This discussion has been closed.