capint
1/9/2017 - 10:22 AM

Java >> HTML character encode / decode

Java >> HTML character encode / decode

//Use org.apache.commons.lang.StringEscapeUtils

//Decode
StringEscapeUtils.unescapeHtml(encodedString);

//Encode
StringEscapeUtils.escapeHtml(StringToEncode)