I want to convert "ConvertText"
to "ConvertText"
. Its XML encoded.
Which Java class should I use for this?
We have a requirement to convert the password from plain text to XML encoded.
Apache Commons Text's StringEscapeUtils should do the trick:
String result =
StringEscapeUtils.unescapeHtml4
("ConvertText");