fix: re-enable iframe elements in sanitize_html by commenting out removal logic

This commit is contained in:
2025-07-26 21:56:24 +00:00
parent 942098583d
commit 299f617988
+2 -2
View File
@@ -88,8 +88,8 @@ def sanitize_html(value):
for script in soup.find_all('script'):
script.decompose()
for iframe in soup.find_all('iframe'):
iframe.decompose()
#for iframe in soup.find_all('iframe'):
#iframe.decompose()
for tag in soup.find_all(['object', 'embed']):
tag.decompose()