Here you can find the source of html2text(String html)
public static String html2text(String html)
//package com.java2s; //License from project: Apache License import org.jsoup.Jsoup; public class Main { public static String html2text(String html) { return Jsoup.parse(html).text(); }/*from ww w.ja va 2s. c o m*/ }