1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 08:15:16 +00:00

Added support of weblink posts

This commit is contained in:
2019-06-24 10:48:31 +02:00
parent 54482fc70f
commit 4085c6cdd5
4 changed files with 63 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import 'package:cached_network_image/cached_network_image.dart';
import 'package:comunic/utils/intl_utils.dart';
import 'package:flutter/material.dart';
import 'package:html/parser.dart';
/// User interface utilities
///
@ -171,3 +172,8 @@ Widget smartInputCounterWidgetBuilder(
@required bool isFocused,
}) =>
currentLength > 0 ? Text("$currentLength/$maxLength") : Container();
/// Parse an HTML String to decode special characters
String htmlDecodeCharacters(String input) {
return parse(input).documentElement.text;
}