Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save onubadev/5743193859d3e911beb0c8f2332b793c to your computer and use it in GitHub Desktop.
Save onubadev/5743193859d3e911beb0c8f2332b793c to your computer and use it in GitHub Desktop.
function limpia($target)
{
$target = str_replace("À", "À", $target);
$target = str_replace("Á", "Á", $target);
$target = str_replace("Â", "Â", $target);
$target = str_replace("Ã", "Ã", $target);
$target = str_replace("Ä", "Ä", $target);
$target = str_replace("Å", "Å", $target);
$target = str_replace("Æ", "Æ", $target);
$target = str_replace("Ç", "Ç", $target);
$target = str_replace("È", "È", $target);
$target = str_replace("É", "É", $target);
$target = str_replace("Ê", "Ê", $target);
$target = str_replace("Ë", "Ë", $target);
$target = str_replace("Ì", "Ì", $target);
$target = str_replace("Í", "Í", $target);
$target = str_replace("Î", "Î", $target);
$target = str_replace("Ï", "Ï", $target);
$target = str_replace("Ð", "Ð", $target);
$target = str_replace("Ñ", "Ñ", $target);
$target = str_replace("Ò", "Ò", $target);
$target = str_replace("Ó", "Ó", $target);
$target = str_replace("Ô", "Ô", $target);
$target = str_replace("Õ", "Õ", $target);
$target = str_replace("Ö", "Ö", $target);
$target = str_replace("×", "×", $target);
$target = str_replace("Ø", "Ø", $target);
$target = str_replace("Ù", "Ù", $target);
$target = str_replace("Ú", "Ú", $target);
$target = str_replace("Û", "Û", $target);
$target = str_replace("Ü", "Ü", $target);
$target = str_replace("Ý", "Ý", $target);
$target = str_replace("Þ", "Þ", $target);
$target = str_replace("ß", "ß", $target);
$target = str_replace("à", "à", $target);
$target = str_replace("á", "á", $target);
$target = str_replace("â", "â", $target);
$target = str_replace("ã", "ã", $target);
$target = str_replace("ä", "ä", $target);
$target = str_replace("å", "å", $target);
$target = str_replace("æ", "æ", $target);
$target = str_replace("ç", "ç", $target);
$target = str_replace("è", "è", $target);
$target = str_replace("é", "é", $target);
$target = str_replace("ê", "ê", $target);
$target = str_replace("ë", "ë", $target);
$target = str_replace("ì", "ì", $target);
$target = str_replace("í", "í", $target);
$target = str_replace("î", "î", $target);
$target = str_replace("ï", "ï", $target);
$target = str_replace("ð", "ð", $target);
$target = str_replace("ñ", "ñ", $target);
$target = str_replace("ò", "ò", $target);
$target = str_replace("ó", "ó", $target);
$target = str_replace("ô", "ô", $target);
$target = str_replace("õ", "õ", $target);
$target = str_replace("ö", "ö", $target);
$target = str_replace("ø", "ø", $target);
$target = str_replace("ù", "ù", $target);
$target = str_replace("ú", "ú", $target);
$target = str_replace("û", "û", $target);
$target = str_replace("ü", "ü", $target);
$target = str_replace("ý", "ý", $target);
$target = str_replace("þ", "þ", $target);
$target = str_replace("ÿ", "ÿ", $target);
return $target;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment