解决百度富文本编辑器过滤代码的问题

使用<script>替换textarea:

<script id="container" name="content" type="text/plain">

    这里写你的初始化内容
</script>
<script type="text/javascript" src="ueditor.config.js"></script>
<script type="text/javascript" src="ueditor.all.js"></script>
<script type="text/javascript">
    var ue = UE.getEditor('container');
</script>
 
第二种:修改百度富文本编辑器的配置:
https://www.cnblogs.com/renhongwei/p/6141385.html
原文地址:https://www.cnblogs.com/web928943/p/13743610.html