function seo_clean_titles_no_trail($title)
{
$title = str_replace ( array ('À', 'à', 'Á', 'á', 'È', 'è', 'É', 'é', 'Ì', 'ì', 'Í', 'í', 'Ñ', 'ñ', 'Ò', 'ò', 'Ó', 'ó', 'Ù', 'ù', 'Ú', 'ú', 'Ü', 'ü', 'Ã', '³', 'æ', 'þ', 'á', 'ð', '¨', 'ö', 'Ö'), array ( 'A', 'a', 'A', 'a', 'E', 'e', 'E', 'e', 'I', 'i', 'I', 'i', 'Ñ', 'ñ', 'O', 'o', 'O', 'o', 'U', 'u', 'U', 'u', 'U', 'u', 'o', '', 'ae', 'th', 'a', 'd', 'o', 'o', 'O'), $title);
$title = str_replace("&", "&", $title);
$title = preg_replace("/&([a-z]+);/", "", $title);
$title = str_replace(
array(":", "?", ".", "!", "$", "^", "*", ",", ";", "'", '"', "%", "~", "@", "#", "[", "]", "<", ">", "\\", "/", "=", "+"),
"", $title);
$title = str_replace(array('_', " ", "&"), array("-", "-", "und"), $title);
$title = htmlentities(strtolower($title));
$title = str_replace ( array ('ä', 'ö', 'ü', 'ß'), array ( 'ae', 'oe', 'ue', 'ss'), $title);
$title = preg_replace("/&([a-z]+);/", "", $title);
$results = rawurlencode($title);
echo "$results";
}
function seo_clean_titles_sendmail($title)
{
$title = str_replace ( array ('À', 'à', 'Á', 'á', 'È', 'è', 'É', 'é', 'Ì', 'ì', 'Í', 'í', 'Ñ', 'ñ', 'Ò', 'ò', 'Ó', 'ó', 'Ù', 'ù', 'Ú', 'ú', 'Ü', 'ü', 'Ã', '³', 'æ', 'þ', 'á', 'ð', '¨', 'ö', 'Ö'), array ( 'A', 'a', 'A', 'a', 'E', 'e', 'E', 'e', 'I', 'i', 'I', 'i', 'Ñ', 'ñ', 'O', 'o', 'O', 'o', 'U', 'u', 'U', 'u', 'U', 'u', 'o', '', 'ae', 'th', 'a', 'd', 'o', 'o', 'O'), $title);
$title = str_replace("&", "&", $title);
$title = preg_replace("/&([a-z]+);/", "", $title);
$title = str_replace(
array(":", "?", ".", "!", "$", "^", "*", ",", ";", "'", '"', "%", "~", "@", "#", "[", "]", "<", ">", "\\", "/", "=", "+"),
"", $title);
$title = str_replace(array('_', " ", "&"), array("-", "-", "und"), $title);
$title = htmlentities(strtolower($title));
$title = str_replace ( array ('ä', 'ö', 'ü', 'ß'), array ( 'ae', 'oe', 'ue', 'ss'), $title);
$title = preg_replace("/&([a-z]+);/", "", $title);
$results = rawurlencode($title);
return "$results";
}
function seo_clean_titles_regular($title)
{
$title = str_replace ( array ('À', 'à', 'Á', 'á', 'ý', 'Ý', 'È', 'è', 'É', 'é', 'Ì', 'ì', 'Í', 'í', 'Ñ', 'ñ', 'Ò', 'ò', 'Ó', 'ó', 'Ù', 'ù', 'Ú', 'ú', 'Ü', 'ü', 'Ã', '³', 'æ', 'þ', 'á', 'ð', '¨', 'ö', 'Ö'), array ( 'A', 'a', 'A', 'a', 'y', 'Y', 'E', 'e', 'E', 'e', 'I', 'i', 'I', 'i', 'Ñ', 'ñ', 'O', 'o', 'O', 'o', 'U', 'u', 'U', 'u', 'U', 'u', 'o', '', 'ae', 'th', 'a', 'd', 'o', 'o', 'O'), $title);
$title = str_replace("&", "&", $title);
$title = preg_replace("/&([a-z]+);/", "", $title);
$title = str_replace(
array(":", "?", ".", "!", "$", "^", "*", ",", ";", "'", '"', "%", "~", "@", "#", "[", "]", "<", ">", "\\", "/", "=", "+"),
"", $title);
$title = str_replace(array("&"), array("und"), $title);
$title = htmlentities(strtolower($title));
$title = str_replace ( array ('ä', 'ö', 'ü', 'ß'), array ( 'ae', 'oe', 'ue', 'ss'), $title);
$title = preg_replace("/&([a-z]+);/", "", $title);
$results = rawurlencode($title);
return "$results";
}