简体   繁体   English

使用PHP作为HTML打印WYSIWYG内容

[英]Print WYSIWYG content with PHP as HTML

How can I print html code that has been created by a WYSIWYG editor with PHP? 如何打印由WYSIWYG编辑器使用PHP创建的html代码? When I print it with "echo", then it shows the html code on the website only, rather than interpreting it as html tags. 当我用“ echo”打印它时,它仅在网站上显示html代码,而不是将其解释为html标签。

Thanks for your answer. 感谢您的回答。

What you need is htmlspecialchars_decode 您需要的是htmlspecialchars_decode

htmlspecialchars_decode — Convert special HTML entities back to characters htmlspecialchars_decode —将特殊的HTML实体转换回字符

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM