List of utility methods to do String Slash
String | addSlashes(String text) add Slashes final StringBuffer sb = new StringBuffer(text.length() * 2); final StringCharacterIterator iterator = new StringCharacterIterator(text); char character = iterator.current(); while (character != StringCharacterIterator.DONE) { if (character == '"') sb.append("\\\""); else if (character == '\'') sb.append("\\\'"); ... |