abstract:<?php //将代码标签设置成HTML代码的实体字符$str = "<div style='width:100px;height:200px;background:red;'></div>"$res = htmlspecialchars($str);$str = htmlspecialchars_decode($res)
<?php
//将代码标签设置成HTML代码的实体字符
$str = "<div style='width:100px;height:200px;background:red;'></div>"
$res = htmlspecialchars($str);
$str = htmlspecialchars_decode($res);
echo $str;
?>
Correcting teacher:天蓬老师Correction time:2019-03-16 14:08:11
Teacher's summary:htmlspecialchars_decode($res); htmlspecialchars()函数中的字符串, 任何时候,都要坚持使用双引号, 你做得对