Sha256: 8689bc1887b291ee991a6f0f339de2e8fb442c511184d14476a59d2f8e42d930

Contents?: true

Size: 160 Bytes

Versions: 40

Compression:

Stored size: 160 Bytes

Contents

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

  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
bizside-2.3.9 lib/bizside/view_helper.rb
bizside-3.0.3 lib/bizside/view_helper.rb
bizside-2.3.8 lib/bizside/view_helper.rb
bizside-3.0.2 lib/bizside/view_helper.rb
bizside-3.0.1 lib/bizside/view_helper.rb
bizside-3.0.0 lib/bizside/view_helper.rb
bizside-2.3.7 lib/bizside/view_helper.rb
bizside-2.3.6 lib/bizside/view_helper.rb
bizside-2.3.5 lib/bizside/view_helper.rb
bizside-2.3.4 lib/bizside/view_helper.rb
bizside-2.3.3 lib/bizside/view_helper.rb
bizside-2.3.2 lib/bizside/view_helper.rb
bizside-2.3.1 lib/bizside/view_helper.rb
bizside-2.3.0 lib/bizside/view_helper.rb
bizside-2.2.3 lib/bizside/view_helper.rb
bizside-2.2.2 lib/bizside/view_helper.rb
bizside-2.2.1 lib/bizside/view_helper.rb
bizside-2.2.0 lib/bizside/view_helper.rb
bizside-2.1.12 lib/bizside/view_helper.rb
bizside-2.1.11 lib/bizside/view_helper.rb