Java HTML Jsoup Document stripTags(Document document)

Here you can find the source of stripTags(Document document)

Description

strip Tags

License

Open Source License

Declaration

public static String stripTags(Document document) 

Method Source Code


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

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

public class Main {
    public static String stripTags(String html) {
        Document doc = Jsoup.parse(html);
        return doc.body().text();
    }//from   w ww.  j a  va 2 s  .c o  m

    public static String stripTags(Document document) {
        return document.body().text();
    }
}

Related

  1. normalizeWhitespaces(Document doc)
  2. postDocument(String url, Collection data)
  3. removeTag(Document doc, String selector)
  4. retrieveHiddenInputs(Document doc)
  5. saveDocumentToDirectory(final org.jsoup.nodes.Document doc, final String fileName, final Path tmpDir)
  6. verifyAdultNotice(Document doc)