java replace all html tags
snippet in html

java replace all html tags

user3011

public static String html2text(String html) {
    return Jsoup.parse(html).text();
}