ms.元 发表于 2012-10-25 23:41:37

php自定义函数替换超长文本中的特殊字符

functionunhtml($content){$content=htmlspecialchars($content);$content=str_replace(chr(13),"<br>",$content);$content=str_replace(chr(32),"<br>",$content);$content=str_replace("$content);$content=str_relace(")_)",">",$content);$content=str_replace("|_|","",$content);rerurn trim($content);}
页: [1]
查看完整版本: php自定义函数替换超长文本中的特殊字符