Sha256: e1e1e8d1dcdd49d395248dd0056592146c060dd78d8c203ab9d209830fcdf29e

Contents?: true

Size: 187 Bytes

Versions: 17

Compression:

Stored size: 187 Bytes

Contents

# frozen_string_literal: true
require 'hamlit/hamlit'

module Hamlit
  module Utils
    def self.escape_html_safe(html)
      html.html_safe? ? html : escape_html(html)
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
hamlit-2.9.0 lib/hamlit/utils.rb
hamlit-2.8.10 lib/hamlit/utils.rb
hamlit-2.8.8 lib/hamlit/utils.rb
hamlit-2.8.7 lib/hamlit/utils.rb
hamlit-2.8.6 lib/hamlit/utils.rb
hamlit-2.8.5 lib/hamlit/utils.rb
hamlit-2.8.4 lib/hamlit/utils.rb
hamlit-2.8.3 lib/hamlit/utils.rb
hamlit-2.8.2 lib/hamlit/utils.rb
hamlit-2.8.1 lib/hamlit/utils.rb
hamlit-2.8.0 lib/hamlit/utils.rb
hamlit-2.7.5 lib/hamlit/utils.rb
hamlit-2.7.3 lib/hamlit/utils.rb
hamlit-2.7.2 lib/hamlit/utils.rb
hamlit-2.7.1 lib/hamlit/utils.rb
hamlit-2.7.0 lib/hamlit/utils.rb
hamlit-2.6.2 lib/hamlit/utils.rb