Here you can find the source of htmlArray2textArray(List
public static List<String> htmlArray2textArray(List<String> htmlArray)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; import java.util.List; import org.jsoup.Jsoup; public class Main { /**/*w w w . java 2 s . co m*/ * @return A list of clean strings or an empty list. */ public static List<String> htmlArray2textArray(List<String> htmlArray) { List<String> cleanTextArray = new ArrayList<>(); if (htmlArray == null) { return cleanTextArray; } for (String html : htmlArray) { cleanTextArray.add(Jsoup.parse(html).text()); } return cleanTextArray; } }