static final String method1811(String s) {
        int i = s.length();
        int j = 0;
        for (int k = 0; k < i; k++) {
            char c = s.charAt(k);
            if (c == '<' || c == '>') {
                j += 3;
            }
        }

        StringBuffer stringbuffer = new StringBuffer(i + j);
        for (int l = 0; l < i; l++) {
            char c1 = s.charAt(l);
            if (c1 == '<') {
                stringbuffer.append("<lt>");
            } else if (c1 == '>') {
                stringbuffer.append("<gt>");
            } else {
                stringbuffer.append(c1);
            }
        }

        return stringbuffer.toString();
    }