[Modify] Polish it
This commit is contained in:
parent
f350ac4078
commit
5c7a868514
@ -134,7 +134,7 @@ namespace WebSocketSharp.Net
|
||||
: -1;
|
||||
}
|
||||
|
||||
private static string htmlEncode (string s, bool attribute)
|
||||
private static string htmlEncode (string s, bool minimal)
|
||||
{
|
||||
var buff = new StringBuilder ();
|
||||
|
||||
@ -148,7 +148,7 @@ namespace WebSocketSharp.Net
|
||||
? "<"
|
||||
: c == '>'
|
||||
? ">"
|
||||
: !attribute && c > 159
|
||||
: !minimal && c > 159
|
||||
? String.Format ("&#{0};", (int) c)
|
||||
: c.ToString ()
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user