Merge pull request 'Add missing HTML attributes to whitelist' (#58) from BordedDev/snek:bugfix/missing-attributes into main

Reviewed-on: #58
This commit was merged in pull request #58.
This commit is contained in:
2025-06-19 14:35:40 +02:00
+9 -1
View File
@@ -151,6 +151,14 @@ SAFE_ATTRIBUTES = {
"aria-hidden", "aria-hidden",
"aria-label", "aria-label",
"srcset", "srcset",
"target",
"rel",
"referrerpolicy",
"controls",
"frameborder",
"allow",
"allowfullscreen",
"referrerpolicy",
} }
@@ -447,7 +455,7 @@ def embed_url(text):
description_element.append( description_element.append(
BeautifulSoup( BeautifulSoup(
f"<p class='page-description'>{page_description or "No description available."}</p>", f"<p class='page-description'>{page_description or 'No description available.'}</p>",
"html.parser", "html.parser",
) )
) )