DataTables / DataTables/Plugins

diacritics-neutralise search plugin doesn't apply to html columns

Open
#394 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

It would be nice if this could apply, if desired, to columns detected as html as well as string, ala the accents-neutralise plugin.

If one wanted to take that more or less directly, something like:

jQuery.fn.DataTable.ext.type.search.html = function (s) {
  return removeDiacritics(s.replace( /<.*?>/g, '' ));
};

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the diacritics-neutralise plugin and the analogous accents-neutralise plugin, then inspect the DataTables search type entry points, including ext.type.search.html. Done means the behavior can optionally normalize diacritics in HTML-detected columns while retaining the existing handling for string columns.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, search
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.