Tinymce删除<;html>;在文本区域中输出时标记


Tinymce deletes <html> tags when output in textarea

我用tinymce制作了一个自己的litle cms。当在预标记中插入纯文本时,代码会在网站上以正确的方式输出,但当我更新编辑器时,html标记会被删除。

Tinymce设置

<script type="text/javascript">
tinyMCE.init({
    selector: "textarea.editme",
   width : "60.5%",
   resize: false,
preformatted : true,
menubar:false,
});
</script>

Tinymce编辑器

<textarea name="content"><?php echo $data['course_content'];?>  </textarea><br />

我在这里回显了数据库中的内容,但正如我所说,html标签在文本区域中被删除了。显示所有其他文本。

我在所有postvars上使用PHP FILTER_ANITIZE_SPECIAL_CHARS时都遇到了同样的问题。:-)