摘要: 发生错误的原因是手动生成的html的标签没有闭合或者语法不规范导致的,可以使用jsoup工具对html文件进行标准化处理,实现如下: html 可以是富文本 或者是 html 文件 private static String formatHtml(String html) { String cont 阅读全文
posted @ 2021-10-23 16:19 星空物语之韵 阅读(975) 评论(0) 推荐(0) 编辑
摘要: 1.html相关的标签 匹配 <video> 标签:<video.*?>.+?</video> pdfFile = pdfFile.replace("<br.?+>", "<br/>");String repContent = pdfFile.replaceAll("<img(.?+)>", "<i 阅读全文
posted @ 2021-10-23 13:33 星空物语之韵 阅读(196) 评论(0) 推荐(0) 编辑