Sha256: cc0c4099ccfb316215deb46953ac71bbe4324957d567ac4dcc055d51b8c88b5f

Contents?: true

Size: 201 Bytes

Versions: 3

Compression:

Stored size: 201 Bytes

Contents

require 'epubber/models/chapter'
require 'nokogiri'

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
epubber-0.1.3 lib/epubber/models/concerns/has_html.rb
epubber-0.1.2 lib/epubber/models/concerns/has_html.rb
epubber-0.1.1 lib/epubber/models/concerns/has_html.rb