text_sanitizer 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -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'} }
|
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.
|
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:
|
12
|
+
date: 2013-04-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|