[英]Tinymce, causing everything to be wrapped in strong tags
I have recently started using TinyMCE in a project and when I use the bold functionality in the editor it looks great, however when I go out to my index page (rails) and look at the table containing my objects, anything below the one utilizing the bold is wrapped in strong tags. 我最近开始在一个项目中使用TinyMCE,当我在编辑器中使用粗体功能时,它看起来不错,但是当我进入索引页面(导轨)并查看包含我的对象的表时,使用粗体用强标签包裹。 Causing strangeness with my javascript.
造成我的JavaScript陌生。 Is Tinymce bugged or am I doing something wrong.
是Tinymce还是我做错了。
我在渲染时通过使用sanitize()而不是raw修复了它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.