php
function unhtml($content){
$content=str_replace("&","&",$content);
$content=str_replace(" $content=str_replace(">",">",$content);
$content=str_replace(" "," ",$content);
$content=str_replace(chr(13),"
",$content);
$content=str_replace("\","\\",$content);
$content=str_replace(chr(34),""",$content);
<code> return $content; }</code>
?>
字符串替换,过滤html代码