abstract:<?php $str = '<pre><sqan>雪山&草地 &阿坝赛区\n开幕,阿坝"熊猫队"主场$首战%大获全胜</sqan></pre>'; echo '转义输出:', htmlentities($str),&nb
<?php $str = '<pre><sqan>雪山&草地 &阿坝赛区\n开幕,阿坝"熊猫队"主场$首战%大获全胜</sqan></pre>'; echo '转义输出:', htmlentities($str), '<hr>'; $str = '<pre><sqan>雪山&草地 &amp;阿坝赛区\n开幕,阿坝"熊猫队"主场$首战%大获全胜</sqan></pre>'; echo '转义输出:', html_entity_decode($str), '<hr>';
Correcting teacher:查无此人Correction time:2019-05-07 09:54:59
Teacher's summary:完成的不错。html转义一般在富文本框使用。继续加油。