Improve message parsing

This commit is contained in:
Andrei Zavatski 2019-10-09 10:17:14 +03:00
parent 6deafc04bf
commit faef4d932d

View File

@ -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("</p>")).Substring(65);
return MessageHTML.Replace("<div class='osu-md-default'>", "").Replace("<p class=\"osu-md-default__paragraph\">", "").Replace("<br />", "").Replace("</p>", "").Replace("</div>", "");
}
}
}