mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-06-05 01:03:44 -04:00
HTML-escape links inside HTML export instead of URL-escaping
This commit is contained in:
parent
407c2bd2ae
commit
8ecc2940b0
1 changed files with 2 additions and 2 deletions
|
@ -84,8 +84,8 @@ internal partial class HtmlMarkdownVisitor : MarkdownVisitor
|
||||||
|
|
||||||
_buffer.Append(
|
_buffer.Append(
|
||||||
!string.IsNullOrWhiteSpace(linkedMessageId)
|
!string.IsNullOrWhiteSpace(linkedMessageId)
|
||||||
? $"<a href=\"{Uri.EscapeUriString(link.Url)}\" onclick=\"scrollToMessage(event, '{linkedMessageId}')\">"
|
? $"<a href=\"{HtmlEncode(link.Url)}\" onclick=\"scrollToMessage(event, '{linkedMessageId}')\">"
|
||||||
: $"<a href=\"{Uri.EscapeUriString(link.Url)}\">"
|
: $"<a href=\"{HtmlEncode(link.Url)}\">"
|
||||||
);
|
);
|
||||||
|
|
||||||
var result = base.VisitLink(link);
|
var result = base.VisitLink(link);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue