本文整理匯總了Java中org.jsoup.safety.Whitelist.basic方法的典型用法代碼示例。如果您正苦於以下問題:Java Whitelist.basic方法的具體用法?Java Whitelist.basic怎麽用?Java Whitelist.basic使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.jsoup.safety.Whitelist
的用法示例。
在下文中一共展示了Whitelist.basic方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getWhitelist
import org.jsoup.safety.Whitelist; //導入方法依賴的package包/類
private Whitelist getWhitelist(UserInputSanitizerPolicy policy) {
Whitelist whitelist = WHITELIST_POLICIES.get(policy);
return whitelist != null ? whitelist : Whitelist.basic();
}
示例2: getWhitelist
import org.jsoup.safety.Whitelist; //導入方法依賴的package包/類
/**
* Returns the JSoup whitelist used to clean user-provided HTML in rich-text fields.
* @return the default implementation returns the "basic" whitelist ({@link Whitelist#basic()}).
*/
protected Whitelist getWhitelist() {
return Whitelist.basic();
}
示例3: getWhitelist
import org.jsoup.safety.Whitelist; //導入方法依賴的package包/類
/**
* Returns the JSoup whitelist used to clean user-provided HTML in rich-text fields.
* @return the default implementation returns the "basic" whitelist ({@see Whitelist#basic()}).
*/
protected Whitelist getWhitelist() {
return Whitelist.basic();
}