lib/softcover/sanitizer.rb in softcover-1.5.9 vs lib/softcover/sanitizer.rb in softcover-1.5.10
- old
+ new
@@ -12,11 +12,11 @@
# 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 small},
+ blockquote small br section aside},
remove_contents: %w{script},
attributes: {
'div' => %w{id class data-tralics-id data-number data-chapter},
'a' => %w{id class href target rel},
'span' => %w{id class style},
@@ -29,10 +29,13 @@
'h3' => %w{id class},
'h4' => %w{id class},
'img' => %w{id class src alt},
'em' => %w{id class},
'code' => %w{id class},
+ 'section' => %w{id class},
+ 'aside' => %w{id class},
'blockquote' => %w{id class},
+ 'br' => %w{id class},
'strong' => %w{id class},
'table' => %w{id class},
'tbody' => %w{id class},
'tr' => %w{id class},
'td' => %w{id class colspan}