在页面输出未经解析的HTML源码

Original 2019-03-31 14:52:44 137
abstract:<?php /**  * Created by PhpStorm.  * User: hp  * Date: 2019/3/31  * Time: 14:37  */ $str="<a href=\"https://w
<?php
/**
 * Created by PhpStorm.
 * User: hp
 * Date: 2019/3/31
 * Time: 14:37
 */
$str="<a href=\"https://www.baidu.com\" style=\" text-decoration: none\"><span style=\"color:lightblue\">百度一下</span> 你就知道</a>";
echo $str;
echo '<br>';
echo htmlentities($str);
echo '<br>';
echo html_entity_decode($str);


Correcting teacher:查无此人Correction time:2019-04-01 09:53:40
Teacher's summary:完成的不错。要知道这个功能用在哪里,一般用在富文本编辑框。继续加油。

Release Notes

Popular Entries