public class Encode extends Object
Modifier and Type | Method and Description |
---|---|
static String |
forHtml(String s)
Encodes a string to HTML using the ASCII-code (e.
|
static String |
forJava(Object input)
Encodes for a Java string
Escapes control characters, quotes and backslashes.
|
public static String forHtml(String s)
&#FC;
)
Escape user input which is displayed in JSP pages with this function.
See CWE-80 http://cwe.mitre.org/data/definitions/80.htmls
- the string to be convertedCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.