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

Reviewed-on: #58
This commit is contained in:
retoor 2025-06-19 14:35:40 +02:00
commit 5b3e12ec4b

View File

@ -151,6 +151,14 @@ SAFE_ATTRIBUTES = {
"aria-hidden",
"aria-label",
"srcset",
"target",
"rel",
"referrerpolicy",
"controls",
"frameborder",
"allow",
"allowfullscreen",
"referrerpolicy",
}
@ -447,7 +455,7 @@ def embed_url(text):
description_element.append(
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",
)
)