dffds
This commit is contained in:
parent
a12e6fb123
commit
8c583f3a26
1 changed files with 2 additions and 0 deletions
|
@ -134,6 +134,8 @@ def sanitize(sanitized, noimages=False):
|
||||||
tag["style"] = "max-height: 100px; max-width: 100%;"
|
tag["style"] = "max-height: 100px; max-width: 100%;"
|
||||||
tag["class"] = "in-comment-image rounded-sm my-2"
|
tag["class"] = "in-comment-image rounded-sm my-2"
|
||||||
tag["loading"] = "lazy"
|
tag["loading"] = "lazy"
|
||||||
|
tag["data-src"] = tag["src"]
|
||||||
|
tag["src"] = ""
|
||||||
|
|
||||||
link = soup.new_tag("a")
|
link = soup.new_tag("a")
|
||||||
link["href"] = tag["src"]
|
link["href"] = tag["src"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue