Here you can find the source of parseEmail(String content)
public static String parseEmail(String content)
//package com.java2s; //License from project: Apache License import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; public class Main { public static String parseEmail(String content) { StringBuffer sb = new StringBuffer(); Document document = Jsoup.parse(content.toString()); Elements div = document.getElementsByTag("span"); for (Element e : div) { sb.append(e.text());// www . j a v a 2 s. c o m } return sb.toString(); } }