xml-purifier 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. data/lib/xml-purifier.rb +2 -4
  2. metadata +1 -1
data/lib/xml-purifier.rb CHANGED
@@ -40,10 +40,8 @@ class XMLPurifier
40
40
 
41
41
  alias to_native to_default
42
42
 
43
- def to_cdata(elem, obj)
44
- s = scan_obj_to_xml(obj)
45
- elem.text = CData.new(s)
46
- elem.add_element(CData.new(s))
43
+ def to_cdata(elem, obj)
44
+ elem.text = CData.new(scan_obj_to_xml(obj))
47
45
  end
48
46
 
49
47
  def to_escaped(elem, obj) elem.text = scan_obj_to_xml(obj) end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xml-purifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors: []
7
7