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.
如何使用 PHP 打印由 WYSIWYG 编辑器创建的 html 代码?当我用“echo”打印它时,它只在网站上显示 html 代码,而不是将其解释为 html 标签。
感谢您的回答。
你需要的是htmlspecialchars_decode
htmlspecialchars_decode — 将特殊的 HTML 实体转换回字符