implemented chat archive
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import 'package:html/parser.dart' as html_parser;
|
||||
import 'package:markdown/markdown.dart' as md;
|
||||
|
||||
String markdownToText(String markdown) {
|
||||
final html = md.markdownToHtml(markdown);
|
||||
final document = html_parser.parse(html);
|
||||
|
||||
return document.body?.text ?? '';
|
||||
}
|
||||
Reference in New Issue
Block a user