Sha256: 648d82beb3cc70c2c026e85a37f396cf328af956052f4d6b289bde10b73a893f

Contents?: true

Size: 197 Bytes

Versions: 1

Compression:

Stored size: 197 Bytes

Contents

require 'nokogiri'

module Epubber::Models
  module Concerns
    module HasHTML
      def clean_html(html)
        Nokogiri::HTML::DocumentFragment.parse(html).to_xhtml
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
epubber-0.2.0 lib/epubber/models/concerns/has_html.rb