10to1-crack 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/crack/xml.rb +2 -2
- metadata +1 -1
data/VERSION.yml
CHANGED
data/lib/crack/xml.rb
CHANGED
@@ -74,9 +74,9 @@ class REXMLUtilityNode #:nodoc:
|
|
74
74
|
end
|
75
75
|
|
76
76
|
if @text
|
77
|
-
out = {
|
77
|
+
out = {'text' => typecast_value( translate_xml_entities( inner_html ) ) }
|
78
78
|
out.merge! attributes unless attributes.empty?
|
79
|
-
return out
|
79
|
+
return { name => out }
|
80
80
|
else
|
81
81
|
#change repeating groups into an array
|
82
82
|
groups = @children.inject({}) { |s,e| (s[e.name] ||= []) << e; s }
|