Here you can find the source of cleanHtmlTag(String htmlText)
public static String cleanHtmlTag(String htmlText)
//package com.java2s; //License from project: Apache License public class Main { public static String cleanHtmlTag(String htmlText) { String reg = "</?[a-z][a-z0-9]*[^<>]*>?"; return htmlText.replaceAll(reg, ""); }//from w ww . j a v a 2 s.c om }