mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 13:05:11 +00:00
chore: Follow up linkify inside html
This commit is contained in:
parent
7ed074c326
commit
2995e5035d
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue