module Epubber::Models::Concerns::HasHTML

Public Instance Methods

clean_html(html) click to toggle source
# File lib/epubber/models/concerns/has_html.rb, line 6
def clean_html(html)
  Nokogiri::HTML::DocumentFragment.parse(html).to_xhtml
end