lib/csl/locale/term.rb in csl-1.0.1 vs lib/csl/locale/term.rb in csl-1.0.2
- old
+ new
@@ -355,11 +355,15 @@
end
end
def tags
if textnode?
- ["<#{[nodename, *attribute_assignments].join(' ')}>", text, "</#{nodename}>"]
+ [
+ "<#{[nodename, *attribute_assignments].join(' ')}>",
+ CSL.encode_xml_text(text),
+ "</#{nodename}>"
+ ]
else
super
end
end
@@ -415,6 +419,6 @@
end
end
TextNode.types << Term
end
-end
\ No newline at end of file
+end