This commit is contained in:
Aevann1 2021-12-20 19:39:07 +02:00
parent 72bc5f9cdd
commit d2b79ee0b0

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"]