Version: v0.7.0 - Beta.  We welcome contributors & feedback.

String.removeAccents

removeAccents() -> string

Description

Replace all accented, diacritic characters (e.g. Latin extended) to their ASCII equivalent.

Capitalization is preserved.

$s = 'Hēllő Ťhērę.'

$s.removeAccents()
//= 'Hello There.'

See Also