Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
venusdrogon committed Apr 28, 2019
1 parent a4ce0dc commit f6ede38
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public static void main(String[] args){
String unsafe = "<p><a href='http://www.oschina.net/' onclick='stealCookies()'> 开源中国社区 </a></p>";
String safe = Jsoup.clean(unsafe, Whitelist.basic());
LOGGER.debug(safe);

LOGGER.debug(doc.text());
// 输出 :
// <p><a href="http://www.oschina.net/" rel="nofollow"> 开源中国社区 </a></p>
}
Expand Down

0 comments on commit f6ede38

Please sign in to comment.