【发布时间】:2014-07-16 14:42:39
【问题描述】:
我想在我的表单上启用用户的 html 输入。
试过了:= f.input :body, :input_html => {:escape => false} and also {:disabled => false}
现在文本显示为一个块。
如果用户放置:
Lorem Ipsum is simply dummy text `</br>` of the printing and typesetting industry.
应该显示为:
Lorem Ipsum is simply dummy text
of the printing and typesetting industry.
非常感谢您的帮助!!
【问题讨论】:
标签: html ruby-on-rails ruby formtastic