Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的数据库中,我有一些带有中断标签的内容。当我回显并打印出来时,这些标签不会出现。我如何解决它?
它在数据库中显示了这一点
<br>
似乎您想从字面上打印<br>到屏幕上。您应该htmlspecialchars在要转换<为<等的文本字符串上使用,并使标签可见。这对于通过标签注入防止 XSS 也很重要。
htmlspecialchars
<
<