private Document cleanDom(Document jsoupDoc){
  String[] tagsToRemove={"head","script",".hidden","embedded"};
  for (  String tag : tagsToRemove) {
    Elements selectedTags=jsoupDoc.select(tag);
    for (    Element element : selectedTags) {
      element.remove();
    }
  }
  return jsoupDoc;
}

private Document cleanDom ( Document jsoupDoc ) { String [ ] tagsToRemove = { "head" , "script" , ".hidden" , "embedded" } ; for ( String tag : tagsToRemove ) { Elements selectedTags = jsoupDoc . select ( tag ) ; for ( Element element : selectedTags ) { element . remove ( ) ; } } return jsoupDoc ; }
remove unwanted parts from a jsoup doc
