fix(core): Fixes displaying some doubles (#585)
This commit is contained in:
parent
a0893b68c0
commit
13717ab2d5
7 changed files with 13 additions and 25 deletions
|
|
@ -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)]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue