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, trim
public AntiSamyDOMScanner(Policy policy)
public AntiSamyDOMScanner() throws PolicyException
PolicyException
public CleanResults scan(String html) throws ScanException
scan
in class AbstractAntiSamyScanner
html
- A String whose contents we want to scan.CleanResults
object with an
XMLDocumentFragment
object and its String
representation, as well as some scan statistics.ScanException
- When there is a problem encountered
while scanning the HTML.public static void main(String[] args) throws PolicyException
PolicyException
public CleanResults getResults()
getResults
in class AbstractAntiSamyScanner
Copyright © 2021. All rights reserved.