相关代码 |
|
function unhtml($content) { $content=htmlspecialchars($content); $content=str_replace(chr(13),"",$content); $content=str_replace(chr(32)," ",$content); $content=str_replace("[_["," $content=str_replace("]_]",">",$content); $content=str_replace("|_|"," ",$content); return trim($content); } function msubstr($str,$start,$len) { $strlen=$start+$len; for($i=0;$i if(ord(substr($str,$i,1))>0xa0) { $tmpstr.=substr($str,$i,2); $i++; } else $tmpstr.=substr($str,$i,1); } return $tmpstr; } ?>
相关资源 |
|