From 6c533614b39240cd4818d094e40771dbf891458a Mon Sep 17 00:00:00 2001
From: Sicherhaven
Date: Mon, 30 Mar 2026 22:13:38 +0530
Subject: [PATCH] fix: important information now displays correctly on event
details
Fixed HTML parser to strip blocks entirely (content + tags)
+ text = text.replaceAll(RegExp(r'', caseSensitive: false, dotAll: true), '');
+ // 2. Remove blocks
+ text = text.replaceAll(RegExp(r'', caseSensitive: false, dotAll: true), '');
+ // 3. Convert block-level closers to newlines
+ text = text.replaceAll(RegExp(r'', caseSensitive: false), '\n');
+ text = text.replaceAll(RegExp(r'
', caseSensitive: false), '\n');
+ text = text.replaceAll(RegExp(r'', caseSensitive: false), '\n');
+ // 4. Convert
to newlines
+ text = text.replaceAll(RegExp(r'
', caseSensitive: false), '\n');
+ // 5. Strip all remaining HTML tags
+ text = text.replaceAll(RegExp(r'<[^>]*>'), '');
+ // 6. Decode HTML entities
text = text
.replaceAll('&', '&')
.replaceAll('<', '<')