List of utility methods to do HTML Jsoup Element
void | stripEmptyDivs(Element body) strip Empty Divs stripEmptyTag(body, "div");
|
void | stripStyles(Element body) strip Styles Elements divs = body.select("style");
divs.empty();
|
Element | updateData(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; |