Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.2
-
None
-
None
Description
StringEscapeUtils.unescapeXml(String) (and other unescaes) works too slowly if String has nothing to unescape, that is very common situation.
To make unescape faster, following check should be added to be start of Entities.unescape(str)
if (str.indexOf('&') < 0)
return str;