[Modify] Remove it

This commit is contained in:
sta 2018-10-05 20:09:35 +09:00
parent 15492436bb
commit bdfbd7d684

View File

@ -134,29 +134,6 @@ namespace WebSocketSharp.Net
: -1;
}
private static string htmlEncode (string s)
{
var buff = new StringBuilder ();
foreach (var c in s) {
buff.Append (
c == '"'
? """
: c == '&'
? "&"
: c == '<'
? "&lt;"
: c == '>'
? "&gt;"
: c > 159
? String.Format ("&#{0};", (int) c)
: c.ToString ()
);
}
return buff.ToString ();
}
private static string htmlEncode (string s, bool attribute)
{
var buff = new StringBuilder ();