public class AntiSamySAXScanner extends AbstractAntiSamyScanner
errorMessages, isNofollowAnchors, isValidateParamAsEmbed, locale, messages, policy
Constructor and Description |
---|
AntiSamySAXScanner(Policy policy) |
Modifier and Type | Method and Description |
---|---|
CleanResults |
getResults() |
CleanResults |
scan(Reader reader,
Writer writer)
Using a SAX parser, can pass Streams for input and output.
|
CleanResults |
scan(String html) |
CleanResults |
scan(String html,
Policy policy) |
addError, getHTMLSerializer, getOutputFormat, trim
public AntiSamySAXScanner(Policy policy)
public CleanResults getResults()
getResults
in class AbstractAntiSamyScanner
public CleanResults scan(String html) throws ScanException
scan
in class AbstractAntiSamyScanner
ScanException
public CleanResults scan(String html, Policy policy) throws ScanException
ScanException
public CleanResults scan(Reader reader, Writer writer) throws ScanException
reader
- A Reader which can feed the SAXParser a little input at a timewriter
- A Writer that can take a little output at a timeScanException
- When there is a problem encountered
while scanning the HTML.Copyright © 2021. All rights reserved.