Codex tools: Log in
Contents |
Converts all accent characters to ASCII characters.
If there are no accent characters, then the string given is just returned.
<?php remove_accents( $string ) ?>
<?php $text = "Hoy será un gran día"; echo remove_accents ( $text ); ?>
Echo result: Hoy sera un gran dia
This is run automatically on anything passed to sanitize_title with the context of "save", which effectively prevents you from having them goofy foreign symbols in your good american post title. Thanks for using WordPress, tool of the hegemony.
Since: 1.2.1
remove_accents() is located in wp-includes/formatting.php.