This commit is contained in:
Aevann1 2021-11-04 16:13:09 +02:00
parent e125072166
commit 28eb0f42a9

View file

@ -134,7 +134,7 @@ def sanitize(sanitized, noimages=False):
tag.wrap(link)
for tag in soup.find_all("a"):
if tag["href"]:
if tag.get("href"):
tag["target"] = "_blank"
if site not in tag["href"]: tag["rel"] = "nofollow noopener noreferrer"