Skip to content

Instantly share code, notes, and snippets.

@aivision369
Created April 17, 2018 09:14
Show Gist options
  • Save aivision369/295a8d681211e624bd5a0447e78ce743 to your computer and use it in GitHub Desktop.
Save aivision369/295a8d681211e624bd5a0447e78ce743 to your computer and use it in GitHub Desktop.
public static String getDecodedString(String string)
{
String decodeString = "";
if (string == null) {
return null;
}else{
decodeString = StringEscapeUtils.unescapeHtml4(
new String(string.getBytes(), 0, string.length()).trim());
return decodeString;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment