[Modify] Remove it
This commit is contained in:
parent
f073aaaa6c
commit
4fb204efc9
@ -134,27 +134,6 @@ namespace WebSocketSharp.Net
|
|||||||
: -1;
|
: -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static string htmlAttributeEncode (string s)
|
|
||||||
{
|
|
||||||
var buff = new StringBuilder ();
|
|
||||||
|
|
||||||
foreach (var c in s) {
|
|
||||||
buff.Append (
|
|
||||||
c == '"'
|
|
||||||
? """
|
|
||||||
: c == '&'
|
|
||||||
? "&"
|
|
||||||
: c == '<'
|
|
||||||
? "<"
|
|
||||||
: c == '>'
|
|
||||||
? ">"
|
|
||||||
: c.ToString ()
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
return buff.ToString ();
|
|
||||||
}
|
|
||||||
|
|
||||||
private static string htmlEncode (string s)
|
private static string htmlEncode (string s)
|
||||||
{
|
{
|
||||||
var buff = new StringBuilder ();
|
var buff = new StringBuilder ();
|
||||||
|
Loading…
Reference in New Issue
Block a user