Escaping quotes in Java
Here is a simple tip to replace a quote with a backslash and a quote : ‘ ==> \’ public static String echappeApostrophe(String s) { String temp; temp = s.replaceAll(“‘”,”\\\\’”); return temp; } I needed 4 backslashes To better understand what is happening here, i printed out a few values : String a = “\’”; … Read more