[Modify] Remove it
This commit is contained in:
parent
15492436bb
commit
bdfbd7d684
@ -134,29 +134,6 @@ namespace WebSocketSharp.Net
|
|||||||
: -1;
|
: -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static string htmlEncode (string s)
|
|
||||||
{
|
|
||||||
var buff = new StringBuilder ();
|
|
||||||
|
|
||||||
foreach (var c in s) {
|
|
||||||
buff.Append (
|
|
||||||
c == '"'
|
|
||||||
? """
|
|
||||||
: c == '&'
|
|
||||||
? "&"
|
|
||||||
: c == '<'
|
|
||||||
? "<"
|
|
||||||
: c == '>'
|
|
||||||
? ">"
|
|
||||||
: c > 159
|
|
||||||
? String.Format ("&#{0};", (int) c)
|
|
||||||
: c.ToString ()
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
return buff.ToString ();
|
|
||||||
}
|
|
||||||
|
|
||||||
private static string htmlEncode (string s, bool attribute)
|
private static string htmlEncode (string s, bool attribute)
|
||||||
{
|
{
|
||||||
var buff = new StringBuilder ();
|
var buff = new StringBuilder ();
|
||||||
|
Loading…
Reference in New Issue
Block a user