Java HTML Clean cleanHtmlTag(String htmlText)

Here you can find the source of cleanHtmlTag(String htmlText)

Description

clean Html Tag

License

Apache License

Declaration

public static String cleanHtmlTag(String htmlText) 

Method Source Code

//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
}

Related

  1. cleanHTML(String input)
  2. cleanHTML(String s)
  3. cleanHtml(String s)
  4. cleanHtml(String str)
  5. cleanHtmlTag(String content)
  6. cleanHTMLText(String sText)