function judgeHtml($str){
if($str != strip_tags($str)){
echo '有';
}else{
echo '无';
}
}
judgeHtml('
a');
echo '
';
judgeHtml('a');
输出:有
无
http://www.bkjia.com/PHPjc/825233.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/825233.htmlTechArticlefunction judgeHtml($str){ if($str != strip_tags($str)){ echo '有'; }else{ echo '无'; } } judgeHtml('pa'); echo 'br /'; judgeHtml('a'); 输出:有 无...