I want to remove everything between a tag. An example input may be
Input:
start
delete from below
-
This may help you.
String selectTags="div,li,p,ul,ol,span,table,tr,td,address,em";
/*selecting some specific tags */
Elements webContentElements = parsedDoc.select(selectTags);
String removeTags = "img,a,form";
/*Removing some tags from selected elements*/
webContentElements.select(removeTags).remove();