docs: @Deprecated
    public static String toPlainText(String text, int offset, int capacity)
    {
      PlainTextState state = PlainTextState.TEXT;
  
      StringBuilder plainText = new StringBuilder();
      for(int i = offset; i < text.length() && plainText.length() <= capacity; ++i) {
        int c = text.charAt(i);
  
        switch(state) {
        case TEXT:
          if(c == '<') {
            state = PlainTextState.START_TAG;
            break;
          }
          plainText.append((char)c);
          break;
  
        case START_TAG:
          if(c == '/') {
            state = PlainTextState.END_TAG;
            break;
          }
          if(c == '>') {
            state = PlainTextState.TEXT;
          }
          break;
  
        case END_TAG:
          if(c == 'p') {
            plainText.append("\r\n");
          }
          if(c == '>') {
            state = PlainTextState.TEXT;
          }
          break;
        }
      }
      return plainText.toString();
    }