chore: Follow up linkify inside html

This commit is contained in:
Krille 2023-05-30 13:39:36 +02:00
parent 17cfff153b
commit 06e6e9c5b1
No known key found for this signature in database

View File

@ -51,7 +51,10 @@ class HtmlMessage extends StatelessWidget {
options: const LinkifyOptions(humanize: false),
).map(
(element) {
if (element is! UrlElement || element.text.contains('>')) {
if (element is! UrlElement ||
element.text.contains('<') ||
element.text.contains('>') ||
element.text.contains('"')) {
return element.text;
}
return '<a href="${element.url}">${element.text}</a>';