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.
- data/lib/xml-purifier.rb +2 -4
- 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
|
-
|
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
|