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); }
web前端:引用@学明:形象比喻:我是一个建筑师,我可以把一张设计图变成一栋房子,我可以把一张网页设计图幻化成一张网页,用HTML做砖瓦,用CSS做油漆和墙纸把房子装修得漂漂亮亮,我还用JS把房子的门变成了自动门,在里头一个点击就可以打开空调,打开电视机,我设定了一些参数好让我每天回到家的时候,家里该运作的电器就都运作了,和设计图一模一样。我的房子不仅仅在IE上完美无暇的,在其他浏览器也是稳如泰山。