【发布时间】:2011-08-22 10:58:32
【问题描述】:
使用来自https://github.com/kete/tiny_mce 的 tiny_mce 为了能够更改文本的格式,问题是一旦提交它就会将 html 发送到我的 cmets 并且它没有被翻译并且只是输出到下面显示的纯 html
<ul> <li><span style="text-decoration: underline;"><strong>hello </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>
如何让 rails 翻译 html 以显示粗体等。
我试过把它放在 HTML 标签中 <html><%= comment.body %></html> 这不起作用!
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-3 tinymce editor