我保存了一个带有 html 标签的字符串。
=> "<p>hey man this is crazy g funk</p>\n<p>here i come with another crazy message from..</p>\n<p>dj eassssy d!@#!.</p>"
您如何解析它以显示 HTML 标记所暗示的方式?
我试过:
= Post.text
=h Post.text
= RedCloth.new(Post.text).to_html
= Hpricot(Post.text)