lib/softcover/sanitizer.rb in softcover-1.0.beta15 vs lib/softcover/sanitizer.rb in softcover-1.0.beta16

- old
+ new

@@ -33,16 +33,19 @@ 'table' => %w{id class}, 'tbody' => %w{id class}, 'tr' => %w{id class}, 'td' => %w{id class colspan} }, + css: { + properties: %w{color height width} + }, protocols: { 'a' => {'href' => [:relative, 'http', 'https', 'mailto']}, 'img' => {'src' => [:relative, 'http', 'https']} }, output: :xhtml } Sanitize.clean(html.force_encoding("UTF-8"), sanitize_options) end end -end \ No newline at end of file +end