diff --git a/lib/ui/screens/event_screen.dart b/lib/ui/screens/event_screen.dart index 577907f81..785cbfa94 100644 --- a/lib/ui/screens/event_screen.dart +++ b/lib/ui/screens/event_screen.dart @@ -459,7 +459,8 @@ class _EventScreenState extends State { } if (event.noRegistrationMessage?.isNotEmpty ?? false) { - textSpans.add(TextSpan(text: event.noRegistrationMessage)); + final htmlStripped = Bidi.stripHtmlIfNeeded(event.noRegistrationMessage!); + textSpans.add(TextSpan(text: htmlStripped)); } else { textSpans.add(const TextSpan(text: 'No registration required.')); } @@ -491,7 +492,8 @@ class _EventScreenState extends State { final textSpans = []; if (event.noRegistrationMessage?.isNotEmpty ?? false) { - textSpans.add(TextSpan(text: event.noRegistrationMessage)); + final htmlStripped = Bidi.stripHtmlIfNeeded(event.noRegistrationMessage!); + textSpans.add(TextSpan(text: htmlStripped)); } else { textSpans.add(const TextSpan(text: 'No registration required.')); }