public class AntiScript extends Object
| Constructor and Description |
|---|
AntiScript() |
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
cleanMapValues(Map<T,String> map)
Method to clean all of the values in a map where the values are of
type String.
|
static String |
cleanText(String dirtyInput)
This will attempt to return HTML that has been cleaned up according
to the policy.
|
static String |
cleanURI(String dirtyInput)
Method to clean a URL or URI.
|
static org.owasp.validator.html.AntiSamy |
getAntiSamyScanner()
Try to get a static AntiSamy HTML scanner object that is shared the
whole application.
|
protected static org.owasp.validator.html.Policy |
getAntiScriptPolicy()
Try to get the static policy, if none exists, create a new one.
|
public static String cleanText(String dirtyInput)
public static <T> void cleanMapValues(Map<T,String> map)
protected static org.owasp.validator.html.Policy getAntiScriptPolicy()
public static org.owasp.validator.html.AntiSamy getAntiSamyScanner()
Copyright © 2021. All rights reserved.