module Interage::TextHelper
Public Instance Methods
nl2br(string)
click to toggle source
# File lib/interage/text_helper.rb, line 5 def nl2br(string) out = string.to_s.split("\n").map do |str| [str, content_tag(:br)] end safe_join out end