module XmlEscape

Constants

DECODED_CHARACTERS
DECODE_MAP
ENCODED_CHARACTERS
ENCODE_MAP
VERSION

Public Instance Methods

escape_xml(str)
Alias for: xml_encode
unescape_xml(str)
Alias for: xml_decode
xml_decode(str) click to toggle source
# File lib/xml_escape.rb, line 7
def xml_decode(str)
  str.gsub(ENCODED_CHARACTERS, DECODE_MAP)
end
Also aliased as: unescape_xml
xml_encode(str) click to toggle source
# File lib/xml_escape.rb, line 2
def xml_encode(str)
  str.gsub(DECODED_CHARACTERS, ENCODE_MAP)
end
Also aliased as: escape_xml