Tag Archives: 改行

Rails: Realize nl2br in PHP


Here’s the code to realise nl2br of PHP in Rails.

Environment

(Unless Rails changes considerably), it can be used in most versions.

  • Rails 4.2.5
  • Ruby 2.0.0
Continue reading Rails: Realize nl2br in PHP