Module: Epubber::Models::Concerns::HasHTML

Included in:
Epubber::Models::Chapter, Endnotes, Introduction
Defined in:
lib/epubber/models/concerns/has_html.rb

Instance Method Summary collapse

Instance Method Details

#clean_html(html) ⇒ Object



6
7
8
# File 'lib/epubber/models/concerns/has_html.rb', line 6

def clean_html(html)
  Nokogiri::XML::DocumentFragment.parse(html).to_s
end