hopefully-unbreakable fix to the transform issue

master
Aevann 2023-09-21 22:12:23 +03:00
parent 495fc103ec
commit cc44c09008
2 changed files with 5 additions and 4 deletions

View File

@ -7745,10 +7745,6 @@ body {
}
}
p { /* fix the transform:exploit */
overflow: hidden !important;
}
#sub-name {
font-size: max(14px, 1.2vw);
}

View File

@ -645,6 +645,11 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=False, count_emojis
link["target"] = "_blank"
link["rel"] = "nofollow noopener"
for child in link.findChildren():
if 'transform' in child.get("style", "").lower():
del link["href"]
break
sanitized = str(soup).replace('<html><body>','').replace('</body></html>','').replace('/>','>')
captured = []