text_area使用输出HTML的富文本编辑器提交问题

ahm*_*met 1 tinymce ruby-on-rails editor ruby-on-rails-3

使用来自https://github.com/kete/tiny_mce的 tiny_mce 能够更改文本的格式,问题是一旦提交它就会将html发送到我的评论并且它没有被翻译,只是输出到显示的纯HTML下面

<ul> <li><span style="text-decoration: underline;"><strong>hello&nbsp;</strong></span></li> <li><span style="text-decoration: underline;">test</span></li> <li><span style="text-decoration: underline;">est</span></li> <li><span style="text-decoration: underline;">est<br /></span></li> </ul>
Run Code Online (Sandbox Code Playgroud)

我如何获得rails来翻译html所以它显示大胆等..我已经尝试将它放在HTML标签中<html><%= comment.body %></html>,这是行不通的!

Ant*_*Ant 6

使用raw帮手:

<%=raw comment.body %>
Run Code Online (Sandbox Code Playgroud)