简体   繁体   中英

Ruby on Rails Ckeditor tags shown

I've got an issue with ckeditor. after text posted/page created in preview it shows tags. How I can fix it and see only edited text itself?

镜头

在您看来,请尝试

 <%= raw(@yourvariable) %>

在我的应用程序中,我为此使用Rails .html_safe方法。

<%= string_from_ckeditor.html_safe %>

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