Escape special characters in Java
Posted on 2007-03-30
I forming a string with a lot of characters that I need to escape, for example
String newStr = new String("\Hi, """ This is \\//complex string");
What I'm looking is there a function I can call to escape the the string automaticlly?