lib/softcover/sanitizer.rb in softcover-0.7.4 vs lib/softcover/sanitizer.rb in softcover-0.7.5
- old
+ new
@@ -10,11 +10,11 @@
def clean(html)
return unless html
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},
+ pre em sup table tbody thead tr td img code strong},
remove_contents: %w{script},
attributes: {
'div' => %w{id class data-tralics-id data-number data-chapter},
'a' => %w{id class href},
'span' => %w{id class style},
@@ -26,10 +26,11 @@
'h2' => %w{id class},
'h3' => %w{id class},
'h4' => %w{id class},
'img' => %w{id class src alt},
'em' => %w{id class},
- 'code' => %w{id class}
+ 'code' => %w{id class},
+ 'strong' => %w{id class}
},
protocols: {
'a' => {'href' => [:relative, 'http', 'https', 'mailto']},
'img' => {'src' => [:relative, 'http', 'https']}
},
\ No newline at end of file