code: public static String escapeXML(final String s) {
          final char[] chars = s.toCharArray();
          return escapeXML(chars, 0, chars.length);
      }
docs: Escape XML characters.
  
  @param s value needed to be escaped
  @return escaped value