lib/softcover/sanitizer.rb in softcover-1.1.16 vs lib/softcover/sanitizer.rb in softcover-1.1.17

- old
+ new

@@ -8,12 +8,14 @@ # retaining useful tags and attributes. def clean(html) return unless html + # Make a whitelist of acceptable elements and attributes. sanitize_options = { elements: %w{div span p a ul ol li h1 h2 h3 h4 - pre em sup table tbody thead tr td img code strong blockquote}, + pre em sup table tbody thead tr td img code strong + blockquote small}, remove_contents: %w{script}, attributes: { 'div' => %w{id class data-tralics-id data-number data-chapter}, 'a' => %w{id class href target}, 'span' => %w{id class style},