Java HTML Parse Jsoup filter(String html)

Here you can find the source of filter(String html)

Description

filter

License

Apache License

Declaration

public static String filter(String html) 

Method Source Code

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

import org.jsoup.Jsoup;
import org.jsoup.helper.StringUtil;

import org.jsoup.safety.Whitelist;

public class Main {
    private final static Whitelist content_filter = Whitelist.relaxed();

    public static String filter(String html) {
        return StringUtil.isBlank(html) ? "" : Jsoup.clean(html, content_filter);
    }/*from w w w . j a va2 s .c  om*/
}

Related

  1. cleanHTMLTags(String str)
  2. cleanupHtmlDoc(String s)
  3. clearBody(String html)
  4. coverTag(String html, String... tagNames)
  5. extractRssUrl(String html, URI base)
  6. fixHtml(String htmlContent, String outputFile, String contentFile)
  7. getContentFromHTML(String html)
  8. getDistinctImageUrls(String htmlContent)
  9. getDoc(Connection conn)