[Modify] Replace it
This commit is contained in:
parent
55dc249ee5
commit
26956822d0
@ -846,23 +846,7 @@ namespace WebSocketSharp.Net
|
||||
if (s.Length == 0)
|
||||
return s;
|
||||
|
||||
var buff = new StringBuilder ();
|
||||
|
||||
foreach (var c in s) {
|
||||
buff.Append (
|
||||
c == '&'
|
||||
? "&"
|
||||
: c == '"'
|
||||
? """
|
||||
: c == '<'
|
||||
? "<"
|
||||
: c == '>'
|
||||
? ">"
|
||||
: c.ToString ()
|
||||
);
|
||||
}
|
||||
|
||||
return buff.ToString ();
|
||||
return htmlAttributeEncode (s);
|
||||
}
|
||||
|
||||
public static void HtmlAttributeEncode (string s, TextWriter output)
|
||||
|
Loading…
Reference in New Issue
Block a user