| | |
| | | // 文件名称 |
| | | private String name = "index"; |
| | | // 文件保存路径 |
| | | private String path; |
| | | private String path = ""; |
| | | |
| | | private Document document; |
| | | private Map<String, Map<String, Object>> params = new HashMap<>(); |
| | |
| | | } |
| | | |
| | | public void parser() { |
| | | Elements children = document.body().children(); |
| | | Elements children = document.children(); |
| | | if (CollUtil.isNotEmpty(children)) { |
| | | for (Element child : children) { |
| | | PartNode partNode = new PartNode(child, this.system); |
| | |
| | | for (PartNode partNode : partNodes) { |
| | | sb.append(partNode.getHtml()); |
| | | } |
| | | document.body().empty().html(sb.toString()); |
| | | document = Jsoup.parse(sb.toString()); |
| | | String outPath = path(outputPath); |
| | | |
| | | String html = document.html(); |