mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 09:05:10 +00:00
fix: Encode component for links correctly
This commit is contained in:
parent
913cedf507
commit
e39f046b1e
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ class HtmlMessage extends StatelessWidget {
|
|||
final newHtml = parts
|
||||
.map(
|
||||
(linkifyElement) => linkifyElement is! UrlElement
|
||||
? linkifyElement.text
|
||||
? Uri.encodeComponent(linkifyElement.text)
|
||||
: '<a href="${linkifyElement.text}">${linkifyElement.text}</a>',
|
||||
)
|
||||
.join(' ');
|
||||
|
|
Loading…
Reference in a new issue