RubyGems
npm
Organizations
Log in
Sign up
RubyGems
adamh-sanitize
Versions diffs
1.0.4.2 → 1.0.4.3
adamh-sanitize 1.0.4.2 → 1.0.4.3
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
data/lib/sanitize.rb
+1
-0
metadata
+1
-1
data/lib/sanitize.rb
CHANGED
Viewed
@@ -104,6 +104,7 @@ class Sanitize
104
104
next
105
105
end
106
106
107
+
node.raw_attributes ||= {}
107
108
if @config[:attributes].has_key?(name)
108
109
# Delete any attribute that isn't in the whitelist for this element.
109
110
node.raw_attributes.delete_if do |key, value|
metadata
CHANGED
Viewed
@@ -1,7 +1,7 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: adamh-sanitize
3
3
version: !ruby/object:Gem::Version
4
-
version: 1.0.4.
2
4
+
version: 1.0.4.
3
5
5
platform: ruby
6
6
authors:
7
7
- Ryan Grove