Sha256: 2645e7bde744fabb723a5f41b91d9bd08a44d101bf601d0efc7fe595604628e4

Contents?: true

Size: 311 Bytes

Versions: 1

Compression:

Stored size: 311 Bytes

Contents

require 'htmlentities'
module ModelMixins
  module Ladas
    module HtmlEntities
      def html_entities_decode
        coder = HTMLEntities.new
        coder.decode(self.to_s)
      end

      def html_entities_encode
        coder = HTMLEntities.new
        coder.encode(self.to_s)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
it-logica-application-backbone-0.2.2 lib/model_mixins/ladas_html_entities.rb