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