java replace all html tags

str = str.replaceAll("\\<.*?\\>", "");public static String html2text(String html) {
    return Jsoup.parse(html).text();
}