Sha256: c5200fb0dfd673e933dfdc3dd91b812a961b48e8509788b889e6b2d1159786f9

Contents?: true

Size: 249 Bytes

Versions: 12

Compression:

Stored size: 249 Bytes

Contents

module Coprl::Presenters::WebClient::Helpers::Sinatra
  module EscapeHtml
    def h(text)
      # Note: Rails escapes html already. It is the opposite as Sinatra.
      # For the inverse see raw
      Rack::Utils.escape_html(text)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
coprl-3.0.0.beta.12 lib/coprl/presenters/web_client/helpers/sinatra/escape_html.rb
coprl-3.0.0.beta.11 lib/coprl/presenters/web_client/helpers/sinatra/escape_html.rb
coprl-3.0.0.beta.10 lib/coprl/presenters/web_client/helpers/sinatra/escape_html.rb
coprl-3.0.0.beta.9 lib/coprl/presenters/web_client/helpers/sinatra/escape_html.rb
coprl-3.0.0.beta.8 lib/coprl/presenters/web_client/helpers/sinatra/escape_html.rb
coprl-3.0.0.beta.7 lib/coprl/presenters/web_client/helpers/sinatra/escape_html.rb
coprl-3.0.0.beta.6 lib/coprl/presenters/web_client/helpers/sinatra/escape_html.rb
coprl-3.0.0.beta.5 lib/coprl/presenters/web_client/helpers/sinatra/escape_html.rb
coprl-3.0.0.beta.4 lib/coprl/presenters/web_client/helpers/sinatra/escape_html.rb
coprl-3.0.0.beta.3 lib/coprl/presenters/web_client/helpers/sinatra/escape_html.rb
coprl-3.0.0.beta.2 lib/coprl/presenters/web_client/helpers/sinatra/escape_html.rb
coprl-3.0.0.beta.1 lib/coprl/presenters/web_client/helpers/sinatra/escape_html.rb