HTML-escape links inside HTML export instead of URL-escaping

pull/825/head
Oleksii Holub 3 years ago
parent 407c2bd2ae
commit 8ecc2940b0

@ -84,8 +84,8 @@ internal partial class HtmlMarkdownVisitor : MarkdownVisitor
_buffer.Append(
!string.IsNullOrWhiteSpace(linkedMessageId)
? $"<a href=\"{Uri.EscapeUriString(link.Url)}\" onclick=\"scrollToMessage(event, '{linkedMessageId}')\">"
: $"<a href=\"{Uri.EscapeUriString(link.Url)}\">"
? $"<a href=\"{HtmlEncode(link.Url)}\" onclick=\"scrollToMessage(event, '{linkedMessageId}')\">"
: $"<a href=\"{HtmlEncode(link.Url)}\">"
);
var result = base.VisitLink(link);

Loading…
Cancel
Save