摘要: 把预定义的 HTML 实体 "&lt;"(小于)和 "&gt;"(大于)转换为字符: <?php$str = "This is some &lt;b&gt;bold&lt;/b&gt; text.";echo htmlspecialchars_decode($str); ?> 上面代码的 HTML 阅读全文
posted @ 2016-11-03 19:37 sun(阳光) 阅读(157) 评论(0) 推荐(0) 编辑
摘要: <?php echo strip_tags("Hello <b>world!</b>"); ?> 阅读全文
posted @ 2016-11-03 19:34 sun(阳光) 阅读(137) 评论(0) 推荐(0) 编辑