Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
テキストを HTML に出力したい。私は simple_format を使用していますが、「< >」の内部が印刷されないことを除いて、すべてが正しいようです。
ありがとう。
:sanitizeタグをサニタイズしないようにオプションを渡すことができます。
:sanitize
<%= simple_text(my_string, nil, :sanitize => false) %>