result = result.replaceAll("\n", "<BR>\n");
result = result.replaceAll("\n", "<br/>\n");
    public static String escapeHtml(String text) {        String result = text.replaceAll("&", "&amp;");        result = result.replaceAll("<", "&lt;");        result = result.replaceAll(">", "&gt;");        result = result.replaceAll("\n", "<BR>\n");        return result;    }