1 2 3 4 5 6 7 8 9 10 11 |
function deletehtml($str) { $str = trim($str); $str=strip_tags($str,""); $str=preg_replace("{\t}","",$str); $str=preg_replace("{\r\n}","",$str); $str=preg_replace("{\r}","",$str); $str=preg_replace("{\n}","",$str); $str=preg_replace("{ }","",$str); return $str; } |