diff --git a/lib/utils/ui_utils.dart b/lib/utils/ui_utils.dart index c077768..218cf7b 100644 --- a/lib/utils/ui_utils.dart +++ b/lib/utils/ui_utils.dart @@ -175,5 +175,7 @@ Widget smartInputCounterWidgetBuilder( /// Parse an HTML String to decode special characters String htmlDecodeCharacters(String input) { + if (input == null || input == "") return ""; + return parse(input).documentElement.text; }