Escape XML Content and Attribute in Java using Google Guava Learn how to escape a XML content string or XML attribute value using the XmlEscapers class of Google Guava library.