mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 06:03:08 +08:00
Fix escaped html strings not being unescaped
This commit is contained in:
parent
a81d5cd819
commit
a4ffd4798d
@ -6,6 +6,7 @@ using osu.Game.Users;
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Net;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace osu.Game.Online.API.Requests.Responses
|
namespace osu.Game.Online.API.Requests.Responses
|
||||||
@ -94,7 +95,7 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
if (IsDeleted)
|
if (IsDeleted)
|
||||||
return @"deleted";
|
return @"deleted";
|
||||||
|
|
||||||
return Regex.Replace(MessageHTML, @"\<.*?\>", "");
|
return WebUtility.HtmlDecode(Regex.Replace(MessageHTML, @"<(.|\n)*?>", string.Empty));
|
||||||
}
|
}
|
||||||
|
|
||||||
public int GetDeletedChildsCount()
|
public int GetDeletedChildsCount()
|
||||||
|
Loading…
Reference in New Issue
Block a user