1
0
mirror of https://github.com/TeamNewPipe/CrashReportImporter synced 2025-10-06 00:22:39 +02:00

Fix bleach call

This commit is contained in:
TheAssassin
2025-01-01 01:41:09 +01:00
parent 4ae6577c25
commit 1c1fcfc823

View File

@@ -57,7 +57,7 @@ class Message:
def sanitize_message(original_data):
normalized = unicodedata.normalize("NFKD", original_data)
decoded = html.unescape(normalized)
sanitized = bleach.clean(decoded, tags=[], attributes={}, styles=[], strip=True)
sanitized = bleach.clean(decoded, tags=[], attributes={}, strip=True)
return unicodedata.normalize("NFKD", sanitized)
@staticmethod