欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

如何去掉文章里的 html 語法

 更新時間:2006年10月09日 00:00:00   作者:  
<?
$a="<font color=red>這是一個帶HTML標識的字串</font>";
$a=strip_tags($a);
print $a;
?>


2
<?
$a="<font color=red>這是一個帶HTML標識的字串</font>";
ereg_replace("^<.+>$", "", $a);
print $a;
?>


3 保留原有內容

<?
$a="<font color=red>這是一個帶HTML標識的字串</font>";
ereg_replace("<", "<", $a);
ereg_replace(">", ">", $a);
print $a;
?>

相關文章

最新評論