Java Utililty Methods HTML Jsoup Element

List of utility methods to do HTML Jsoup Element

Description

The list of methods to do HTML Jsoup Element are organized into topic(s).

Method

voidstripEmptyDivs(Element body)
strip Empty Divs
stripEmptyTag(body, "div");
voidstripStyles(Element body)
strip Styles
Elements divs = body.select("style");
divs.empty();
ElementupdateData(Element element, String data)
Update given element's data to new data.
List<DataNode> dataNodes = element.dataNodes();
for (DataNode dataNode : dataNodes) {
    dataNode.setWholeData("");
dataNodes.get(0).setWholeData(data);
return element;