From 4bcb56aa084b95e964c6cedc124895089badef8b Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 24 Jun 2019 20:24:40 +0200 Subject: [PATCH] Fix an issue --- lib/utils/ui_utils.dart | 2 ++ 1 file changed, 2 insertions(+) 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; }