Skip to content

Instantly share code, notes, and snippets.

View Godefroy's full-sized avatar

Godefroy Godefroy

View GitHub Profile
@Godefroy
Godefroy / removeaccents.js
Created April 7, 2012 16:03
String prototype function to remove accents
String.prototype.removeAccents = function(){
var t = this,
a = {
'œ' : 'oe',
'Œ' : 'Oe',
'æ' : 'ae',
'Æ' : 'Ae',
'[ÀÁÂÃÄÅĀĂǍẠẢẤẦẨẪẬẮẰẲẴẶǺĄ]' : 'A',
'[àáâãäåāăǎạảấầẩẫậắằẳẵặǻą]' : 'a',
'[ÇĆĈĊČ]' : 'C',