【发布时间】:2012-01-02 16:10:38
【问题描述】:
可能重复:
How to display HTML tags as plain text
Print less-than and greater-than symbols in PHP
如何回显<br />?当我回显时,它会中断 html 文件,但我想要的是编写 PHP 代码"<br />"
当我写作时:
echo "<br />";
它在 HTML 中创建一个换行符。我想在 html 页面中看到 <br /> 作为文本。
【问题讨论】:
-
您希望
<br/>在浏览器的页面上进行可视化打印?htmlspecialchars() -
这里有很多人愿意提供帮助——敌对或被动攻击并不能真正鼓励他们!