public class ESAPIHelper extends Object
Constructor and Description |
---|
ESAPIHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanParams(Map<String,String> parameters)
Apply the XSS filter to the parameters in a Map
|
static void |
cleanParams(javax.ws.rs.core.MultivaluedMap<String,String> parameters)
Apply the XSS filter to the parameters in a MultivaluedMap
|
static String |
encodeHtml(String html)
Using ESAPI HTML Encoder, encodes the supplied html string.
|
static String |
stripXSS(String value)
Strips any potential XSS threats out of the value
|
public static String encodeHtml(String html)
html
- the string to be encoded.public static void cleanParams(javax.ws.rs.core.MultivaluedMap<String,String> parameters)
parameters
- public static void cleanParams(Map<String,String> parameters)
parameters
- Copyright © 2011-2015 Appverse. All Rights Reserved.