forked from MarseyWorld/MarseyWorld
dsf
parent
832ea8ba03
commit
b852961f03
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue