orbit-4-2/app/helpers/member_helper.rb

5 lines
87 B
Ruby

module MemberHelper
def nl2br(val)
val.gsub(/\r\n/, '<br />').html_safe
end
end