lib/epubber/models/chapter.rb in epubber-0.1.1 vs lib/epubber/models/chapter.rb in epubber-0.1.2
- old
+ new
@@ -1,6 +1,6 @@
-require 'epubber/models/concerns/has_endnotes'
+require 'epubber/models/concerns/has_html'
# Represents a book's chapter
module Epubber::Models
class Chapter
include Epubber::Models::Concerns::HasHTML
@@ -18,10 +18,10 @@
def title(text)
@title = text
end
def content(text)
- @content = clean_html(text)
+ @content = clean_html(text()
end
def contextify
{ 'id' => @id, 'title' => @title, 'content' => @content }
end