<?php
$new = htmlspecialchars("<a href='test'>Test</a>", ENT_QUOTES);
echo $new;
?>
使用php自带的htmlspecialchars函数即可完成!使用php删除字符串中的html代码
问题:去除文章内容,中的html代码
解决方法:
评论 0