StringUtil { public static String unEscapeHtml( String str ) { if ( StringUtils.isBlank( str ) ) { return ""; } else { return StringEscapeUtils.unescapeHtml4( str ); } } private  StringUtil(); static String escapeHtml( String str ); static boolean isBase64( String str ); static boolean isValidSshPublicKey( String sshKey ); static String unEscapeHtml( String str ); static boolean containsHtml( String str ); static String removeHtml( String str ); static String removeHtmlAndSpecialChars( String str, boolean removeSpaces ); static String removeSpecialChars( String str, boolean removeSpaces ); static boolean isValidEmail( String email );  }
@Test public void testUnEscapeHtml() { String result = StringUtil.escapeHtml( htmlString ); result = StringUtil.unEscapeHtml( result ); assertTrue( result.contains( "<" ) ); assertFalse( result.contains( "&lt;" ) ); }