摘要:
发生错误的原因是手动生成的html的标签没有闭合或者语法不规范导致的,可以使用jsoup工具对html文件进行标准化处理,实现如下: html 可以是富文本 或者是 html 文件 private static String formatHtml(String html) { String cont 阅读全文
摘要:
1.html相关的标签 匹配 <video> 标签:<video.*?>.+?</video> pdfFile = pdfFile.replace("<br.?+>", "<br/>");String repContent = pdfFile.replaceAll("<img(.?+)>", "<i 阅读全文