Skip to main content
To implement your scenarios, you will also need to create the following function:

unescapeHTML

The unescapeHTML function converts HTML codes into Unicode characters. This function is needed for correctly displaying error messages. Input parameters:
NameJava typeDescription
htmlStringStringString of HTML codes
Output parameter type: String (string of Unicode characters). The Exceptions thrown field should be left blank. Java source:
//Unescapes a string containing entity escapes to a string containing the actual Unicode characters
//corresponding to the escapes. Supports HTML 4.0 entities. 
return StringEscapeUtils.unescapeHtml4(htmlString);