PHP have a function called addslashes() that escapes characters such as backslash, single quote and double quote. Are there an equivalent method in Java.
I was told to look at PreparedStatement but the JDBC driver I'm using doesn't implement that method.
The main problem is that sentences are split due to the escape characters.
Does java have an addslashes equivalent or is there any other way of doing this?