mirror of
https://github.com/ppy/osu
synced 2025-01-19 04:20:59 +00:00
Improve message parsing
This commit is contained in:
parent
6deafc04bf
commit
faef4d932d
@ -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>", "");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user