简体   繁体   中英

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. Causing strangeness with my javascript. Is Tinymce bugged or am I doing something wrong.

我在渲染时通过使用sanitize()而不是raw修复了它。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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