Basically I would like to decode a given Html document, and replace all special chars, such as \" \" -> \" \", \">\" -
\" \"
\">\"
If you're using Spring framework already, use the following method:
import static org.springframework.web.util.HtmlUtils.htmlUnescape; ... String result = htmlUnescape(source);