From faef4d932d08cc7ef5fde89d88953b3c21cd7ac6 Mon Sep 17 00:00:00 2001
From: Andrei Zavatski
Date: Wed, 9 Oct 2019 10:17:14 +0300
Subject: [PATCH] Improve message parsing
---
osu.Game/Online/API/Requests/Responses/Comment.cs | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/osu.Game/Online/API/Requests/Responses/Comment.cs b/osu.Game/Online/API/Requests/Responses/Comment.cs
index 30aca3c2ea..fb0aad0e0b 100644
--- a/osu.Game/Online/API/Requests/Responses/Comment.cs
+++ b/osu.Game/Online/API/Requests/Responses/Comment.cs
@@ -87,8 +87,7 @@ namespace osu.Game.Online.API.Requests.Responses
public string GetMessage()
{
- //temporary fix until HTML parsing will be implemented
- return MessageHTML.Remove(MessageHTML.LastIndexOf("
")).Substring(65);
+ return MessageHTML.Replace("", "").Replace("
", "").Replace("
", "").Replace("
", "").Replace("
", "");
}
}
}