feature(预览):html修改标签
This commit is contained in:
@@ -322,6 +322,10 @@ public class IReportServiceImpl implements IReportService {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
FileUtil.deleteFile(path);
|
FileUtil.deleteFile(path);
|
||||||
|
if (StringUtils.isNotBlank(html)){
|
||||||
|
html = html.replaceAll("<img ", "<img class ='preview-img' ");
|
||||||
|
html = html.replaceAll("img \\{", ".preview-img {");
|
||||||
|
}
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user