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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user