Package | Description |
---|---|
org.jsoup |
Contains the main
Jsoup class, which provides convenient static access to the jsoup functionality. |
org.jsoup.nodes |
HTML document structure nodes.
|
Modifier and Type | Method | Description |
---|---|---|
static String |
Jsoup.clean(String bodyHtml,
String baseUri,
Whitelist whitelist,
Document.OutputSettings outputSettings) |
Get safe HTML from untrusted input HTML, by parsing input HTML and filtering it through a white-list of
permitted tags and attributes.
|
Modifier and Type | Method | Description |
---|---|---|
Document.OutputSettings |
Document.OutputSettings.charset(String charset) |
Update the document's output charset.
|
Document.OutputSettings |
Document.OutputSettings.charset(Charset charset) |
Update the document's output charset.
|
Document.OutputSettings |
Document.OutputSettings.clone() |
|
Document.OutputSettings |
Document.OutputSettings.escapeMode(Entities.EscapeMode escapeMode) |
Set the document's escape mode, which determines how characters are escaped when the output character set
does not support a given character:- using either a named or a numbered escape.
|
Document.OutputSettings |
Document.OutputSettings.indentAmount(int indentAmount) |
Set the indent amount for pretty printing
|
Document.OutputSettings |
Document.OutputSettings.outline(boolean outlineMode) |
Enable or disable HTML outline mode.
|
Document.OutputSettings |
Document.outputSettings() |
Get the document's current output settings.
|
Document.OutputSettings |
Document.OutputSettings.prettyPrint(boolean pretty) |
Enable or disable pretty printing.
|
Document.OutputSettings |
Document.OutputSettings.syntax(Document.OutputSettings.Syntax syntax) |
Set the document's output syntax.
|
Modifier and Type | Method | Description |
---|---|---|
static String |
Entities.escape(String string,
Document.OutputSettings out) |
HTML escape an input string.
|
protected void |
Attribute.html(Appendable accum,
Document.OutputSettings out) |
|
protected static void |
Attribute.html(String key,
String val,
Appendable accum,
Document.OutputSettings out) |
|
protected void |
Node.indent(Appendable accum,
int depth,
Document.OutputSettings out) |
|
Document |
Document.outputSettings(Document.OutputSettings outputSettings) |
Set the document's output settings.
|
protected static boolean |
Attribute.shouldCollapseAttribute(String key,
String val,
Document.OutputSettings out) |
|
protected boolean |
Attribute.shouldCollapseAttribute(Document.OutputSettings out) |
Collapsible if it's a boolean attribute and value is empty or same as name
|
Copyright © 2009–2018 Jonathan Hedley. All rights reserved.