如何去掉文章里的 html 语法 

这是一个带HTML标识的字串 "; $a=strip_tags($a); print $a; ?> 2 这是一个带HTML标识的字串 "; ereg_replace("^<.+>$", "", $a); print $a; ?> 3 保留原有内容 这是一个带HTML标识的字串 "; ereg_replace("<", "<", $a); ereg_replace(">", ">", $a); print $a; ?>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus