Java HTML Clean cleanHtmlTag(String content)

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

Description

clean Html Tag

License

Apache License

Declaration

public static String cleanHtmlTag(String content) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static final String RE_HTML_MARK = "(<[^<]*?>)|(<[\\s]*?/[^<]*?>)|(<[^<]*?/[\\s]*?>)";

    public static String cleanHtmlTag(String content) {
        return content.replaceAll(RE_HTML_MARK, "");
    }/*  w  w w. j a  va  2  s  .  c o  m*/
}

Related

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