where can i find this class StringEscapeUtils that can automatically escape the characters instead of manualy doing… on my search i found the util called StringEscapeUtils but i could not find in my project or i try to download from net but could not find too… is there a way i can make that automated something like this:
String testStr = "< > \" &";
System.out.println("Escaped : " + StringEscapeUtils.escapeHtml(testStr));
You need to download the Apache Commons Lang library and include it in your project as a referenced library.