lib/epubber/models/model.rb in epubber-0.1.4 vs lib/epubber/models/model.rb in epubber-0.1.5

- old
+ new

@@ -3,9 +3,9 @@ module Epubber::Models class Model # Because the EPUB format always uses XHTML, let's make sure things like # `<br>` gets transformed to `<br />`. def clean_html(html) - Nokogiri::XML::DocumentFragment.parse(html).to_s + Nokogiri::HTML::DocumentFragment.parse(html).to_xhtml end end end