fdsfds
This commit is contained in:
parent
e125072166
commit
28eb0f42a9
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue