text_sanitizer 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59,8 +59,8 @@ module TextSanitizer
59
59
  def sanitize html
60
60
  Sanitize.clean(
61
61
  html,
62
- :elements => %w(b div p i a span img u br),
63
- :attributes => {'a' => %w(href title)},
62
+ :elements => %w(b div p i a span img u br h2 h3 h4 h5 ul li em),
63
+ :attributes => {'a' => %w(href title), 'img' => %w(src alt)},
64
64
  :protocols => {'a' => {'href' => %w(http https mailto relative)},
65
65
  'img' => {'src' => %w(http https relative)} },
66
66
  :add_attributes => {'a' => {'rel' => 'nofollow'} }
@@ -1,3 +1,3 @@
1
1
  module TextSanitizer
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: text_sanitizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-06 00:00:00.000000000 Z
12
+ date: 2013-04-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails