code: public ExtractResult extract(String content, String selector, int amount) {
  
  		List<Element> extracted = extractElements(content, selector, amount);
  
  		if (extracted.size() > 1) {
  
  			// first element is the remaining body, the rest are extracted
  			Element body = extracted.get(0);
  			List<Element> elements = extracted.subList(1, extracted.size());
  
  			// convert to HTML
  			List<String> elementStr = new ArrayList<String>();
  			for (Element el : elements) {
  				elementStr.add(el.outerHtml());
  			}
  
  			return new DefaultExtractResult(elementStr, body.html());
  		} else {
  			// nothing to extract
  			return new DefaultExtractResult(Collections.<String> emptyList(), content);
  		}
  	}
docs: Extracts HTML elements from the main HTML content. The result consists of the extracted HTML
  elements and the remainder of HTML content, with these elements removed. Can be limited to a
  certain amount, e.g. to extract just the first of selected elements.
  
  @param content
  HTML content to extract elements from
  @param selector
  CSS selector for elements to extract
  @param amount
  Maximum number of elements to extract
  @return HTML content of the extracted elements together with the remainder of the original
  content. If no elements are found, the remainder contains the original content.
  @since 1.0