Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何插入html内容? #275

Closed
xuwangcheng14 opened this issue Jul 26, 2019 · 2 comments

Comments

@xuwangcheng14
Copy link

commented Jul 26, 2019

你好!
我的子模板里有一块区域是html内容,里面有很多html标签,主要是前端返回的富文本内容,请问这种该如何插入到模板?

我百度了不少,网上都是将html全部转换成word(默认打开时web视图),但是我这个是只是一个子模板。
目前我想到的方案是利用jsoup将html解析,递归解析,将不同的html标签内容转换成poi支持的内容,但是想到里面可能存在很多种样式、段落、表格、图片的什么有感觉是不是太麻烦了。

不知道大神也没有什么好的解决方案?

PS:为什么没有交流群呢?

@Sayi

This comment has been minimized.

Copy link
Owner

commented Aug 13, 2019

@Sayi Sayi closed this Aug 13, 2019

@xuwangcheng14

This comment has been minimized.

Copy link
Author

commented Aug 21, 2019

遇到此问题的可以参考下。虽然不太完善:http://www.xuwangcheng.com/articles/2019/08/21/1566371746217.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.