docs: @Deprecated
      public static String escapeXml(String string) {
          StringBuilder sb = SharedStringBuilder.get(SB_ESCAPE, string.length());
          for (int i = 0, length = string.length(); i < length; i++) {
              char c = string.charAt(i);
              switch (c) {
                  case '&':
                      sb.append("&amp;");
                      break;
                  case '<':
                      sb.append("&lt;");
                      break;
                  case '>':
                      sb.append("&gt;");
                      break;
                  case '\'':
                      sb.append("&apos;");
                      break;
                  default:
                      sb.append(c);
              }
          }
          return sb.toString();
      }