- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
// php5.1 to php4 functional, thanks for nic.ru fucked hosting
function html_decode($str){
if(function_exists("htmlspecialchars_decode")){
return stripslashes(htmlspecialchars_decode($str, ENT_QUOTES));
}else{
return stripslashes(str_replace(array("&", """, "'", "<", ">"), array("&", "\"", "'", "<", ">"), $str));
}
}