<?php
if(!function_exists("keephtml")) {
	function keephtml($res){
        $res = str_replace("&lt;","<",$res);
        $res = str_replace("&gt;",">",$res);
        $res = str_replace("&quot;",'"',$res);
        $res = str_replace("&amp;",'&',$res);
        return $res;
	}
}

if(!function_exists('utf8_cleantext')) {
	function utf8_cleantext($string) {
		$string = html_entity_decode($string);
    	$string = str_replace("Ã¤","ä",$string);
        $string = str_replace("Ã„","Ä",$string);
        $string = str_replace("Ã¶","ö",$string);
        $string = str_replace("Ã–","Ö",$string);
        $string = str_replace("Ã¼","ü",$string);
        $string = str_replace("Ãœ","Ü",$string);
        $string = str_replace("ÃŸ","ß",$string);
        $string = str_replace("Â´","´",$string);
        $string = str_replace("Ã‰","É",$string);
        $string = str_replace("Ã©","é",$string);
        $string = str_replace("Â©","©",$string);
        $string = str_replace("Â®","®",$string);
		$string = str_replace('"',"",$string);
		$string = str_replace("&quot;","",$string);
        	return $string;
    }
}
?>