我有一个要求,需要删除HTML特殊字符,并将特殊字符替换为字符串中相应的值。
"
例如:
我有一个这样的字符串:
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.’"
"
"
" 需要替换为 ""
","&
" 需要替换为 "&
","’
" 需要替换为 "’
"。