diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 415fa29c1..f98f07bbf 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -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"]