$a="这是一个带HTML标识的字串";
$a=strip_tags($a);
print $a;
?>
2
$a="这是一个带HTML标识的字串";
ereg_replace("^<.>$", "", $a);
print $a;
?>
3 保留原有内容
$a="这是一个带HTML标识的字串";
ereg_replace("
ereg_replace(">", ">", $a);
print $a;
?>
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn