简体   繁体   English

数据从HTML中的小型MCE传输到php?

[英]Data transfer from tiny MCE in HTML to php?

当我从HTML中的tinymce数据发送到PHP时,可以接收数据,但它是以HTML代码形式出现的……如何解决它并取回数据?

TinyMCE is an HTML editor. TinyMCE是HTML编辑器。 Accept the data from TinyMCE (sanitize it) and store it in the database. 从TinyMCE接受数据(消毒)并将其存储在数据库中。 When you display it in the page, it will be as entered by the user. 当您在页面中显示它时,它将与用户输入的一样。

If you want to remove all the HTML tags, you can use strip_tags . 如果要删除所有HTML标记,则可以使用strip_tags

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

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