pedrorijo91
pedrorijo91

Reputation: 7845

Remove/normalize accents in Javascript/Jquery

I'm trying to remove accents from a string in portuguese and I've found solutions like the one presented in Remove accents/diacritics in a string in JavaScript but it seems a bit 'ugly'. Isn't any library in JS/Jquery that can make this work for you? In Java you have for instance the class Normalizer http://docs.oracle.com/javase/7/docs/api/java/text/Normalizer.html

Upvotes: 1

Views: 3420

Answers (1)

pedrorijo91
pedrorijo91

Reputation: 7845

Just found this library https://github.com/dundalek/latinize

I've not fully explored the code, but it seems to work

Upvotes: 4

Related Questions