谢谢Nayn
HtmlCleaner htmlCleaner = new HtmlCleaner(); TagNode root = htmlCleaner.clean(url); HtmlCleaner.getInnerHtml(root); String html = "<" + root.getName() + ">" + htmlCleaner.getInnerHtml(root) + "</" + root.getName() + ">";