Here you can find the source of replaceHtml(String html)
public static String replaceHtml(String html)
//package com.java2s; //License from project: Apache License import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { public static String replaceHtml(String html) { String regEx = "<.+?>"; Pattern p = Pattern.compile(regEx); Matcher m = p.matcher(html); String s = m.replaceAll(""); return s; }/* ww w . j a v a 2 s . c o m*/ }