Quoted search string doesn't get highlighted in search results
When placing the search value within quotes in the DataTables search box the correct value is located but not highlighted.
For example when searching for: Doe, John, DataTables finds all records with "Doe" and/or "John". If I want to locate the one record with "Doe, John" I enclose the search value in quotes, DataTables then correctly finds that record but the search value isn't highlighted.
@DataTables Is there any way to retrieve the search term that is used by DataTables internally?
This is the bit of code where DataTables is doing that. It doesn't present that externally at all - it would effectively need to be re-implemented. I can't really think how it would be presented externally...?
@DataTables What the plugin currently does is retrieving the search term using: https://github.com/julmot/datatables.mark.js/blob/master/src/datatables.mark.js#L64
So, if the actual search term is modified during the lifetime of DataTables, I'd expect that these changes are reflected in the API call or there is another method to retrieve the "real" search term.
Currently no - the regular expression that DataTables builds is not exposed at all I'm afraid. It was never intended for anything other than internal use in DataTables - but I can see how this would be a special situation where it could be useful.
I'm starting to draw up plans to revise how the filtering works in DataTables and I'll include this in that process.
Any update on this? It's not critical but it does get noticed by users every few weeks or so and raises a question.
I'm going to assign you @DataTables, according to your reply there's nothing that I can do at the moment due to missing API methods.