From 7d827f91f91f7d2435a34a39b0bd94cce01cb4a8 Mon Sep 17 00:00:00 2001 From: goodtrailer Date: Sat, 22 May 2021 18:30:43 -0700 Subject: [PATCH] HTML decode pixiv descriptions --- DailyDesktop.Core.Providers.Pixiv/PixivProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DailyDesktop.Core.Providers.Pixiv/PixivProvider.cs b/DailyDesktop.Core.Providers.Pixiv/PixivProvider.cs index 820b66c..7248fac 100644 --- a/DailyDesktop.Core.Providers.Pixiv/PixivProvider.cs +++ b/DailyDesktop.Core.Providers.Pixiv/PixivProvider.cs @@ -62,7 +62,7 @@ public WallpaperInfo GetWallpaperInfo() string authorUri = $"https://www.pixiv.net/users/{authorIdMatch.Value}"; Match descriptionMatch = Regex.Match(imagePageHtml, DESCRIPTION_PATTERN); - string description = descriptionMatch.Value; + string description = WebUtility.HtmlDecode(descriptionMatch.Value); // Download illustration from image URI and return its local path, // which is necessary because pixiv blocks requests if the Referer