Java HTML Parse Jsoup removeHTMLTags(final String text)

Here you can find the source of removeHTMLTags(final String text)

Description

remove HTML Tags

License

Open Source License

Declaration

public static final String removeHTMLTags(final String text) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import org.jsoup.Jsoup;

public class Main {
    public static final String removeHTMLTags(final String text) {
        return Jsoup.parse(text).body().text();
    }//  w  w w  . ja  v  a 2 s .  c  o  m
}

Related

  1. parseUTF8HTMLDocument(String html)
  2. parseWithAdultCheck(URL url, int timeout)
  3. prettyPrint(String html)
  4. processHtml(String html)
  5. removeAllHtmlTags(String unsafe)
  6. removeTag(String html)
  7. sanitizeHTML(String html)
  8. stripHTML(final String value)
  9. stripHtml(String html)