Parse HTML entities during APINewsPost deserialisation

This commit is contained in:
Andrei Zavatski
2020-07-07 00:11:35 +03:00
parent c86bb2e755
commit 857a027a73
2 changed files with 25 additions and 6 deletions

View File

@ -39,9 +39,9 @@ namespace osu.Game.Tests.Visual.Online
}),
new NewsCard(new APINewsPost
{
Title = "This post has a full-url image!",
Preview = "boom",
Author = "user",
Title = "This post has a full-url image! (HTML entity: &)",
Preview = "boom (HTML entity: &)",
Author = "user (HTML entity: &)",
FirstImage = "https://assets.ppy.sh/artists/88/header.jpg",
PublishedAt = DateTimeOffset.Now
})