DrDoof / RemoveDiacritics


Version: +2833970

License: MIT; https://opensource.org/licenses/MIT

Adds a function for removing diacritics from letters in a string. (For example: è,é => e and à,á => a) This is very useful when diacritics cannot (or should not) be used. (Like in URL:s)

function removeDiacritics (string) { }


var raw = 'Déjà vu';
var cleaned = removeDiacritics (raw);
console.log (cleaned); // => "Deja vu"

Userscripts Using This Library

Rating: 0