abstract:<?php $str = '<pre><sqan>雪山&草地 &阿壩賽區(qū)\n開幕,阿壩"熊貓隊"主場$首戰(zhàn)%大獲全勝</sqan></pre>'; echo '轉(zhuǎn)義輸出:', htmlentities($str),&nb
<?php $str = '<pre><sqan>雪山&草地 &阿壩賽區(qū)\n開幕,阿壩"熊貓隊"主場$首戰(zhàn)%大獲全勝</sqan></pre>'; echo '轉(zhuǎn)義輸出:', htmlentities($str), '<hr>'; $str = '<pre><sqan>雪山&草地 &amp;阿壩賽區(qū)\n開幕,阿壩"熊貓隊"主場$首戰(zhàn)%大獲全勝</sqan></pre>'; echo '轉(zhuǎn)義輸出:', html_entity_decode($str), '<hr>';
Correcting teacher:查無此人Correction time:2019-05-07 09:54:59
Teacher's summary:完成的不錯。html轉(zhuǎn)義一般在富文本框使用。繼續(xù)加油。