1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 17:17:24 +08:00

Fix escaped html strings not being unescaped in changelog entries.

This commit is contained in:
Lucas A 2019-09-19 20:08:14 +02:00
parent c09f384a7e
commit 5663e3e6b3

View File

@ -14,6 +14,7 @@ using osu.Game.Graphics.Sprites;
using osu.Game.Users; using osu.Game.Users;
using osuTK.Graphics; using osuTK.Graphics;
using osu.Framework.Allocation; using osu.Framework.Allocation;
using System.Net;
namespace osu.Game.Overlays.Changelog namespace osu.Game.Overlays.Changelog
{ {
@ -149,7 +150,7 @@ namespace osu.Game.Overlays.Changelog
}; };
// todo: use markdown parsing once API returns markdown // todo: use markdown parsing once API returns markdown
message.AddText(Regex.Replace(entry.MessageHtml, @"<(.|\n)*?>", string.Empty), t => message.AddText(WebUtility.HtmlDecode(Regex.Replace(entry.MessageHtml, @"<(.|\n)*?>", string.Empty)), t =>
{ {
t.Font = fontSmall; t.Font = fontSmall;
t.Colour = new Color4(235, 184, 254, 255); t.Colour = new Color4(235, 184, 254, 255);