Sha256: d4c1344911cbe558d530ac4c2389f4c7b525486978a21ce25c0855a61300e26c

Contents?: true

Size: 192 Bytes

Versions: 12

Compression:

Stored size: 192 Bytes

Contents

module Daddy
  module Helpers

    module HtmlHelper

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

    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
daddy-0.8.1 lib/daddy/helpers/html_helper.rb
daddy-0.8.0 lib/daddy/helpers/html_helper.rb
daddy-0.7.9 lib/daddy/helpers/html_helper.rb
daddy-0.7.8 lib/daddy/helpers/html_helper.rb
daddy-0.7.7 lib/daddy/helpers/html_helper.rb
daddy-0.7.6 lib/daddy/helpers/html_helper.rb
daddy-0.7.5 lib/daddy/helpers/html_helper.rb
daddy-0.7.4 lib/daddy/helpers/html_helper.rb
daddy-0.7.3 lib/daddy/helpers/html_helper.rb
daddy-0.7.2 lib/daddy/helpers/html_helper.rb
daddy-0.7.1 lib/daddy/helpers/html_helper.rb
daddy-0.7.0 lib/daddy/helpers/html_helper.rb