Method: CSL#encode_xml_text
- Defined in:
-
lib/csl/compatibility.rb,
lib/csl/compatibility.rb
41 42 43 44 45 |
# File 'lib/csl/compatibility.rb', line 41 def encode_xml_text(string) string.gsub(/[&<>]/) { |match| XML_ENTITY_SUBSTITUTION[match] } end |