1、一,代码如下图,用htmlentities( )函数。
2、二、运行后成功输出:
3、三、htmlentities( )函数的作用是把字符转换为 HTML 实体,可用于输出一些html标签.
4、四,上面代码运行后得到如下内容: