[Modify] Polish it
This commit is contained in:
parent
e2cc195808
commit
343c0acf6a
@ -843,10 +843,7 @@ namespace WebSocketSharp.Net
|
||||
if (s == null)
|
||||
throw new ArgumentNullException ("s");
|
||||
|
||||
if (s.Length == 0)
|
||||
return s;
|
||||
|
||||
return htmlAttributeEncode (s);
|
||||
return s.Length > 0 ? htmlAttributeEncode (s) : s;
|
||||
}
|
||||
|
||||
public static void HtmlAttributeEncode (string s, TextWriter output)
|
||||
|
Loading…
Reference in New Issue
Block a user