fix(core): Fixes displaying some doubles (#585)

This commit is contained in:
Kamron Batman 2021-04-25 14:04:44 -07:00 committed by GitHub
parent a0893b68c0
commit 13717ab2d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 13 additions and 25 deletions

View file

@ -555,9 +555,9 @@ namespace Server
public static string FixHtml(string str)
{
if (str == null)
if (string.IsNullOrEmpty(str))
{
return "";
return str;
}
using var sb = new ValueStringBuilder(str, stackalloc char[Math.Min(40960, str.Length)]);