Better handling of mixed notes-content, stripping out lines and HTML entities

This commit is contained in:
RattleSN4K3 2025-04-25 00:59:33 +02:00
parent 0127142cf7
commit 1448fc1ffe

View file

@ -157,6 +157,9 @@ namespace LANCommander.PCGamingWiki
.Select(x => x.InnerText)
.Select(x => x.TrimEnd('.'));
notes = string.Join("\n", notelines ?? []);
notes = notes.Replace("\n\n", ". ");
notes = notes.ReplaceLineEndings("");
notes = HttpUtility.HtmlDecode(notes);
}
if (type == null)