The xml_encode method takes a string and encodes it using XML escaping.
xml_encode
xml_encode ( content )
content
(String).