Ruby
China
新手问题
将使用富文本编辑器生成的含 html 标签的字符串存入数据库,读出后如何被浏览器正确解析,而不是显示纯文本?
Topics
招聘
Wiki
酷站
Gems
Sign Up
Sign In
新手问题
将使用富文本编辑器生成的含 html 标签的字符串存入数据库,读出后如何被浏览器正确解析,而不是显示纯文本?
ruby_mbyd916
·
February 21, 2014
· Last by
ruby_mbyd916
replied at
February 21, 2014
· 2569 hits
使用了 kindeditor,谢谢解答!
hhuai
#0
February 21, 2014
<%= sanitize
@
raw_content
%>
2 likes
ruby_mbyd916
#1
February 21, 2014
#1 楼
@
hhuai
非常感谢,才接触 rails 不久,谢谢!
You need to
Sign in
before reply, if you don't have an account, please
Sign up
first.
Thomas
@ruby_mbyd916
拼搏为人杰,不搏愧人生!
北京
Total
2
replies
New Reply comming, click to load.