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 and Description |
---|---|
static java.lang.String |
Jsoup.clean(java.lang.String bodyHtml,
java.lang.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 | Field and Description |
---|---|
private static Document.OutputSettings |
Entities.DefaultOutput |
private Document.OutputSettings |
Node.OuterHtmlVisitor.out |
private Document.OutputSettings |
Document.outputSettings |
Modifier and Type | Method and Description |
---|---|
Document.OutputSettings |
Document.OutputSettings.charset(java.nio.charset.Charset charset)
Update the document's output charset.
|
Document.OutputSettings |
Document.OutputSettings.charset(java.lang.String 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.
|
(package private) Document.OutputSettings |
Node.getOutputSettings() |
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 and Description |
---|---|
(package private) static void |
Entities.escape(java.lang.Appendable accum,
java.lang.String string,
Document.OutputSettings out,
boolean inAttribute,
boolean normaliseWhite,
boolean stripLeadingWhite) |
static java.lang.String |
Entities.escape(java.lang.String string,
Document.OutputSettings out)
HTML escape an input string.
|
private void |
XmlDeclaration.getWholeDeclaration(java.lang.Appendable accum,
Document.OutputSettings out) |
protected void |
Attribute.html(java.lang.Appendable accum,
Document.OutputSettings out) |
(package private) void |
Attributes.html(java.lang.Appendable accum,
Document.OutputSettings out) |
protected static void |
Attribute.html(java.lang.String key,
java.lang.String val,
java.lang.Appendable accum,
Document.OutputSettings out) |
protected void |
Node.indent(java.lang.Appendable accum,
int depth,
Document.OutputSettings out) |
(package private) void |
TextNode.outerHtmlHead(java.lang.Appendable accum,
int depth,
Document.OutputSettings out) |
(package private) void |
Comment.outerHtmlHead(java.lang.Appendable accum,
int depth,
Document.OutputSettings out) |
(package private) void |
DataNode.outerHtmlHead(java.lang.Appendable accum,
int depth,
Document.OutputSettings out) |
(package private) void |
PseudoTextElement.outerHtmlHead(java.lang.Appendable accum,
int depth,
Document.OutputSettings out) |
(package private) void |
CDataNode.outerHtmlHead(java.lang.Appendable accum,
int depth,
Document.OutputSettings out) |
(package private) void |
XmlDeclaration.outerHtmlHead(java.lang.Appendable accum,
int depth,
Document.OutputSettings out) |
(package private) abstract void |
Node.outerHtmlHead(java.lang.Appendable accum,
int depth,
Document.OutputSettings out)
Get the outer HTML of this node.
|
(package private) void |
Element.outerHtmlHead(java.lang.Appendable accum,
int depth,
Document.OutputSettings out) |
(package private) void |
DocumentType.outerHtmlHead(java.lang.Appendable accum,
int depth,
Document.OutputSettings out) |
(package private) void |
TextNode.outerHtmlTail(java.lang.Appendable accum,
int depth,
Document.OutputSettings out) |
(package private) void |
Comment.outerHtmlTail(java.lang.Appendable accum,
int depth,
Document.OutputSettings out) |
(package private) void |
DataNode.outerHtmlTail(java.lang.Appendable accum,
int depth,
Document.OutputSettings out) |
(package private) void |
PseudoTextElement.outerHtmlTail(java.lang.Appendable accum,
int depth,
Document.OutputSettings out) |
(package private) void |
CDataNode.outerHtmlTail(java.lang.Appendable accum,
int depth,
Document.OutputSettings out) |
(package private) void |
XmlDeclaration.outerHtmlTail(java.lang.Appendable accum,
int depth,
Document.OutputSettings out) |
(package private) abstract void |
Node.outerHtmlTail(java.lang.Appendable accum,
int depth,
Document.OutputSettings out) |
(package private) void |
Element.outerHtmlTail(java.lang.Appendable accum,
int depth,
Document.OutputSettings out) |
(package private) void |
DocumentType.outerHtmlTail(java.lang.Appendable accum,
int depth,
Document.OutputSettings out) |
Document |
Document.outputSettings(Document.OutputSettings outputSettings)
Set the document's output settings.
|
protected boolean |
Attribute.shouldCollapseAttribute(Document.OutputSettings out)
Collapsible if it's a boolean attribute and value is empty or same as name
|
protected static boolean |
Attribute.shouldCollapseAttribute(java.lang.String key,
java.lang.String val,
Document.OutputSettings out) |
Constructor and Description |
---|
OuterHtmlVisitor(java.lang.Appendable accum,
Document.OutputSettings out) |