function unhtml($content){ $content=htmlspecialchars($content); $content=str_replace(chr(13),"<br>",$content); $content=str_replace(chr(32)," ",$content); return trim($content); } |
HTML 标记的原义输出 函数
最新推荐文章于 2021-07-03 14:40:19 发布
function unhtml($content){ $content=htmlspecialchars($content); $content=str_replace(chr(13),"<br>",$content); $content=str_replace(chr(32)," ",$content); return trim($content); } |