public class HtmlEntityEncoder extends Object
Constructor and Description |
---|
HtmlEntityEncoder() |
Modifier and Type | Method and Description |
---|---|
static String |
encodeXSS(Object obj) |
static String |
encodeXSS(String s)
Encode
a) the following visible characters:
" => 34, % => 37, & => 38, ' => 39, ( => 40,
) => 41, + => 43,
; => 59, < => 60,
> => 62,
b) ignore control characters
c) ignore undefined characters
|
Copyright © 2021. All rights reserved.