Beispiel #1
0
 @Test
 public void formQuoteEscape() {
   assertEquals("", Util.formQuoteEscape(null));
   assertEquals("abc", Util.formQuoteEscape("abc"));
   assertEquals(""abc"", Util.formQuoteEscape("\"abc\""));
   assertEquals("å", Util.formQuoteEscape("å"));
 }
Beispiel #2
0
 protected void appendLink(String url) throws IOException {
   out.write("<a href=\"");
   out.write(Util.formQuoteEscape(url));
   out.write("\">");
   Util.htmlize(url, out);
   out.write("</a>");
 }