简单教程
提交运行
代码编辑器:
<?php $str = "Jane & 'Tarzan'"; echo htmlentities($str, ENT_COMPAT); echo "<br>"; echo htmlentities($str, ENT_QUOTES); echo "<br>"; echo htmlentities($str, ENT_NOQUOTES);
运行结果: