PHP头条
热点:

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


function  unhtml($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);

}
 

 

摘自 ms.元

www.phpzy.comtrue/phprm/16797.htmlTechArticlephp自定义函数替换超长文本中的特殊字符 function unhtml($content){ $content=htmlspecialchars($content); $content=str_replace(chr(13),br,$content); $content=str_replace(chr(32),br,$content); $content=str_replace([_[,,$content)...

相关文章

    暂无相关文章

PHP之友评论

今天推荐