docs: @Deprecated
      public static String escapeText(String text) {
          if (text == null) {
              return null;
          }
  
          StringBuilder sb = SharedStringBuilder.get(SB_ESCAPE);
  
          for (int i = 0; i < text.length(); i++) {
              char ch = text.charAt(i);
              switch (ch) {
                  case '"':
                      sb.append("\\\"");
                      break;
                  case '\\':
                      sb.append("\\\\");
                      break;
                  case '\b':
                      sb.append("\\b");
                      break;
                  case '\f':
                      sb.append("\\f");
                      break;
                  case '\n':
                      sb.append("\\n");
                      break;
                  case '\r':
                      sb.append("\\r");
                      break;
                  case '\t':
                      sb.append("\\t");
                      break;
                  case '/':
                      sb.append("\\/");
                      break;
                  default:
                      //Reference: http://www.unicode.org/versions/Unicode5.1.0/
                      if ((ch >= '\u0000' && ch <= '\u001F') || (ch >= '\u007F' && ch <= '\u009F') || (ch >= '\u2000' && ch <= '\u20FF')) {
                          String ss = Integer.toHexString(ch);
                          sb.append("\\u");
                          for (int k = 0; k < 4 - ss.length(); k++) {
                              sb.append('0');
                          }
                          sb.append(ss.toUpperCase());
                      }
                      else {
                          sb.append(ch);
                      }
              }
          }
  
          return sb.toString();
      }