Here you can find the source of filter(String html)
public static String filter(String html)
//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*/ }