public class AntiSamyDOMScanner extends AbstractAntiSamyScanner
AntiSamy.scan() method.errorMessages, isNofollowAnchors, isValidateParamAsEmbed, locale, messages, policy| Constructor and Description |
|---|
AntiSamyDOMScanner() |
AntiSamyDOMScanner(Policy policy) |
| Modifier and Type | Method and Description |
|---|---|
CleanResults |
getResults() |
static void |
main(String[] args) |
CleanResults |
scan(String html)
This is where the magic lives.
|
addError, getHTMLSerializer, getOutputFormat, trimpublic AntiSamyDOMScanner(Policy policy)
public AntiSamyDOMScanner()
throws PolicyException
PolicyExceptionpublic CleanResults scan(String html) throws ScanException
scan in class AbstractAntiSamyScannerhtml - A String whose contents we want to scan.CleanResults object with an
XMLDocumentFragment object and its String
representation, as well as some scan statistics.ScanExceptionpublic static void main(String[] args) throws PolicyException
PolicyExceptionpublic CleanResults getResults()
getResults in class AbstractAntiSamyScannerCopyright © 2013 The Open Web Application Security Project (OWASP). All rights reserved.