Here you can find the source of RemoveHtmlTag(String html)
public static String RemoveHtmlTag(String html)
//package com.java2s; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { static final Pattern patternHtml = Pattern.compile("<.+?>"); public static String RemoveHtmlTag(String html) { Matcher m = patternHtml.matcher(html); while (m.find()) { html = m.replaceAll(""); }/*from ww w .j av a 2 s.c o m*/ return html; } }