text_sanitizer 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -60,10 +60,10 @@ module TextSanitizer
60
60
  Sanitize.clean(
61
61
  html,
62
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)},
63
+ :attributes => {'a' => %w(href title target), 'img' => %w(src alt)},
64
64
  :protocols => {'a' => {'href' => %w(http https mailto relative)},
65
65
  'img' => {'src' => %w(http https relative)} },
66
- :add_attributes => {'a' => {'rel' => 'nofollow'} }
66
+ :add_attributes => {'a' => {'rel' => 'nofollow', 'target' => '_blank'} }
67
67
  )
68
68
  end
69
69
  end
@@ -1,3 +1,3 @@
1
1
  module TextSanitizer
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
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.3
4
+ version: 0.0.4
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: 2013-04-04 00:00:00.000000000 Z
12
+ date: 2013-04-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails