Here you can find the source of stripTags(Document document)
public static String stripTags(Document document)
//package com.java2s; //License from project: Open Source License import org.jsoup.Jsoup; import org.jsoup.nodes.Document; public class Main { public static String stripTags(String html) { Document doc = Jsoup.parse(html); return doc.body().text(); }//from w ww. j a va 2 s .c o m public static String stripTags(Document document) { return document.body().text(); } }