Sha256: 4dfc35ae46bead98eb521a01eeeb619fc7b730c25ffeabb9d4e8c4a538218297

Contents?: true

Size: 161 Bytes

Versions: 5

Compression:

Stored size: 161 Bytes

Contents

module StyleGuide
  module ApplicationHelper
    def escape_for_display(content)
      content.gsub(/\</, "&lt;").gsub(/\>/, "&gt;").html_safe
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
style-guide-1.1.1 app/helpers/style_guide/application_helper.rb
style-guide-1.1.0 app/helpers/style_guide/application_helper.rb
style-guide-1.0.0 app/helpers/style_guide/application_helper.rb
style-guide-0.7.4 app/helpers/style_guide/application_helper.rb
style-guide-0.7.3 app/helpers/style_guide/application_helper.rb