lib/softcover/sanitizer.rb in softcover-0.7.1 vs lib/softcover/sanitizer.rb in softcover-0.7.2

- old
+ new

@@ -9,11 +9,11 @@ def clean(html) return unless html sanitize_options = { - elements: %w{div span p a ul ol li h1 h2 h3 + elements: %w{div span p a ul ol li h1 h2 h3 h4 pre em sup table tbody thead tr td img}, remove_contents: %w{script}, attributes: { 'div' => %w{id class data-tralics-id data-number data-chapter}, 'a' => %w{id class href}, @@ -23,9 +23,10 @@ 'li' => %w{id class}, 'sup' => %w{id class}, 'h1' => %w{id class}, 'h2' => %w{id class}, 'h3' => %w{id class}, + 'h4' => %w{id class}, 'img' => %w{id class src alt}, 'em' => %w{id class} }, protocols: { 'a' => {'href' => [:relative, 'http', 'https', 'mailto']}, \ No newline at end of file