code: public static String esc(String in) {
  		if (in == null) {
  			return null;
  		}
  		StringBuffer val = new StringBuffer(in);
  		esc(val);
  		return val.toString();
  	}
docs: Escapes quotes, double quotes, ecape characters and end-of-line characters in strings.
  
  @param in input string
  @return escaped string