From 1448fc1ffe635165cbf4abbb63c8d3bb462dda01 Mon Sep 17 00:00:00 2001 From: RattleSN4K3 Date: Fri, 25 Apr 2025 00:59:33 +0200 Subject: [PATCH] Better handling of mixed notes-content, stripping out lines and HTML entities --- LANCommander.Server/PCGamingWikiClient.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/LANCommander.Server/PCGamingWikiClient.cs b/LANCommander.Server/PCGamingWikiClient.cs index 50ed5e86..b82bdc24 100644 --- a/LANCommander.Server/PCGamingWikiClient.cs +++ b/LANCommander.Server/PCGamingWikiClient.cs @@ -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)