Skip to content

Commit

Permalink
✨ 升级 Jsoup
Browse files Browse the repository at this point in the history
  • Loading branch information
li-xunhuan committed Nov 28, 2023
1 parent 3a469d3 commit 3c27ed0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public HtmlSafeList() {
}

@Override
protected boolean isSafeAttribute(String tagName, Element el, Attribute attr) {
public boolean isSafeAttribute(String tagName, Element el, Attribute attr) {
//不允许 javascript 开头的 src 和 href
if ("src".equalsIgnoreCase(attr.getKey()) || "href".equalsIgnoreCase(attr.getKey())) {
String value = attr.getValue();
Expand Down

0 comments on commit 3c27ed0

Please sign in to comment.