mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-18 10:52:34 +01:00
chore: Follow up linkify inside html
This commit is contained in:
parent
17cfff153b
commit
06e6e9c5b1
@ -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>';
|
||||
|
Loading…
Reference in New Issue
Block a user