[Modify] Polish it
This commit is contained in:
parent
76ed2aede1
commit
b530875b85
@ -761,11 +761,8 @@ namespace WebSocketSharp.Net
|
|||||||
|
|
||||||
public static string HtmlAttributeEncode (string s)
|
public static string HtmlAttributeEncode (string s)
|
||||||
{
|
{
|
||||||
if (s == null)
|
if (s == null || s.Length == 0)
|
||||||
return null;
|
return s;
|
||||||
|
|
||||||
if (s.Length == 0)
|
|
||||||
return String.Empty;
|
|
||||||
|
|
||||||
var buff = new StringBuilder ();
|
var buff = new StringBuilder ();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user