Beispiel #1
0
 /**
  * Escape quotes, \, /, \r, \n, \b, \f, \t and other control characters (U+0000 through U+001F).
  *
  * @param s
  * @return
  */
 public static String escape(String s) {
   if (s == null) return null;
   StringBuffer sb = new StringBuffer();
   escape(s, sb);
   return sb.toString();
 }