code: public static String getTitle(String htmlContent) {
  		Document doc = Jsoup.parse(htmlContent);
  		Elements titleNode = doc.select("head > title");
  		return titleNode.isEmpty() ? null : doc.title();
  	}
docs: Get the title of the HTML. If no <code>title</code> tag exists, then the
  title is null.
  
  @param htmlContent
  the HTML content that may contain a title
  @return the title of the HTML or null if none