master
Aevann1 2021-12-20 19:39:07 +02:00
parent 832ea8ba03
commit b852961f03
1 changed files with 1 additions and 0 deletions

View File

@ -138,6 +138,7 @@ def sanitize(sanitized, noimages=False):
tag["loading"] = "lazy"
tag["data-src"] = tag["src"]
tag["src"] = "/assets/images/loading.webp"
tag['alt'] = f'![]({tag["src"]})'
link = soup.new_tag("a")
link["href"] = tag["data-src"]