feature(预览):html修改标签

This commit is contained in:
yangjianze
2022-11-15 10:17:57 +08:00
parent 33dfda2d90
commit 6c60b91901
@@ -322,6 +322,10 @@ public class IReportServiceImpl implements IReportService {
break;
}
FileUtil.deleteFile(path);
if (StringUtils.isNotBlank(html)){
html = html.replaceAll("<img ", "<img class ='preview-img' ");
html = html.replaceAll("img \\{", ".preview-img {");
}
return html;
}
}