Skip to content

Commit 0005fe4

Browse files
committed
外链直链
1 parent 7536b53 commit 0005fe4

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/main/java/org/b3log/symphony/util/Markdowns.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -457,13 +457,10 @@ public void tail(org.jsoup.nodes.Node node, int depth) {
457457
}
458458

459459
if (!MediaPlayers.isMedia(src)) {
460-
//src = URLs.encode(src);
461-
//a.attr("href", Latkes.getServePath() + "/forward?goto=" + src);
462-
a.tagName("p");
463-
a.html(src);
460+
a.attr("href", src);
464461
}
465-
//a.attr("target", "_blank");
466-
//a.attr("rel", "nofollow");
462+
a.attr("target", "_blank");
463+
a.attr("rel", "nofollow");
467464
});
468465
doc.outputSettings().prettyPrint(false);
469466

0 commit comments

Comments
 (0)