在您看来,请尝试
<%= 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.