Here you can find the source of processHtml(String html)
public static String processHtml(String html)
//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 processHtml(String html) { String newHtml = html;/* w w w. j a va 2 s . co m*/ Document doc = Jsoup.parse(html); Elements eles = doc.select("[dict]"); for (Element ele : eles) { System.out.println(ele.attr("dict")); ele.parent().html("fffffffffffffff"); } System.out.println("doc:\n" + doc.html()); return newHtml; } }