Module: Bizside::ViewHelper

Defined in:
lib/bizside/view_helper.rb

Instance Method Summary collapse

Instance Method Details

#html_line_break(s) ⇒ Object



4
5
6
7
# File 'lib/bizside/view_helper.rb', line 4

def html_line_break(s)
  ret = html_escape(s)
  ret.gsub(/\r\n|\r|\n/, "<br/>").html_safe
end