Here you can find the source of replaceHTMLTags(final String source)
private static String replaceHTMLTags(final String source)
//package com.java2s; public class Main { private static String replaceHTMLTags(final String source) { String modified = new String(source); return modified.replace(" ", " ").replace("<", "<") .replace(">", ">").replace("&", "&") .replace(""", "\"").replace("\n", ""); }/* ww w.j a v a2s. com*/ }