I have a requirement to remove HTML special characters and replace the special character with the respective value in a string.
For example:
I have a string like this:
String text="Federation of AP Chambers of Commerce & Industry Awards for the year 2010-11. Speaking on the occasion,
He said, "About 54 percent of the population is youth aged below 25 years. We have to use their energy and
intelligence for development of the state as well as the country.The youth trained will also be absorbed by
companies.’"
"
needs to be replaced with "
and &
needs to be replaced with &
and ’
needs to be replaced with ’
.