module Interage::TextHelper

Public Instance Methods

nl2br(string, options = {}) click to toggle source
# File lib/interage/text_helper.rb, line 5
def nl2br(string, options = {})
  out = string.split("\n").map do |str|
    content_tag :div, str, options
  end

  safe_join out
end