public static String escapeXML( String content ) {
    if ( Utils.isEmpty( content ) ) {
      return content;
    }
    return StringEscapeUtils.escapeXml( content );
  }
@Test
  public void testEscapeXml() {
    final String xml = "<xml xmlns:test=\"http://test\">";
    final String escaped = "&lt;xml xmlns:test=&quot;http://test&quot;&gt;";
    assertNull( Const.escapeXml( null ) );
    assertEquals( escaped, Const.escapeXml( xml ) );
  }