問題:去除文章內(nèi)容,中的html代碼
解決方法:
<?php $new = htmlspecialchars("<a href='test'>Test</a>", ENT_QUOTES); echo $new; ?>使用php自帶的htmlspecialchars函數(shù)即可完成!