lib/epubber/models/introduction.rb in epubber-0.1.0 vs lib/epubber/models/introduction.rb in epubber-0.1.1
- old
+ new
@@ -1,13 +1,17 @@
+require 'epubber/models/concerns/has_endnotes'
+
# Represents a book's introduction
module Epubber::Models
class Introduction
+ include Epubber::Models::Concerns::HasHTML
+
def initialize
@content = '<p>Not specified</p>'
end
def content(content)
- @content = content
+ @content = clean_html(content)
end
def contextify
{ 'content' => @content }
end