StringEscapeUtils for character acceleration
where can I find this class StringEscapeUtils
that can automatically exit symbols instead of doing it manually ... in my search I found a utility named StringEscapeUtils
but I could not find in my project or I am trying to download from net but could not find too ... is there a way I can do that automate something like this:
String testStr = "< > \" &";
System.out.println("Escaped : " + StringEscapeUtils.escapeHtml(testStr));
source to share
You need to download the Apache Commons Lang library and include it in your project as a reference library.
source to share
I think what you are looking for is: org.apache.commons.lang.StringEscapeUtils
Cm:
http://commons.apache.org/lang/
http://commons.apache.org/lang/api/org/apache/commons/lang3/StringEscapeUtils.html
http://commons.apache.org/lang/api/src-html/org/apache/commons/lang3/StringEscapeUtils.html
source to share