accent-folding

A small library for accent sensitive highlight

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
accent-folding
401.0.38 years ago8 years agoMinified + gzip package size for accent-folding in KB

Readme

accent-folding
It wraps string fragment in <b> html tag by default. You can use custom folding tag by adding the name of your tag as third parameter (2nd example). install with npm:
npm install accent-folding
Example code:

accentFoldedHighlight("Fulanilo López", "lo"); // --> "Fulanilo pez"

accentFoldedHighlight("Fulanilo López", "lo", "strong"); // --> "Fulanilo pez"