Kawai Wiki

Rev

Rev 195 | Rev 202 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 195 Rev 198
Line 57... Line 57...
57
    /**
57
    /**
58
     * Escapes the angle brackets.
58
     * Escapes the angle brackets.
59
     * @param html String
59
     * @param html String
60
     * @return String
60
     * @return String
61
     */
61
     */
62
    private String escapeAngleBrackets(String html) {
-
 
-
 
62
    public static String escapeAngleBrackets(String html) {
63
        String s = Regex.sub(html, "s/\\</\\&lt\\;/g");
63
        String s = Regex.sub(html, "s/\\</\\&lt\\;/g");
64
        s = Regex.sub(s, "s/\\>/\\&gt\\;/g");
64
        s = Regex.sub(s, "s/\\>/\\&gt\\;/g");
65
        return s;
65
        return s;
66
    }
66
    }
67
67