【发布时间】:2019-12-08 17:47:21
【问题描述】:
在docx文档中,我想用一些html格式的文本(粗体)替换标签<example_tag>:
你好世界
我在做:
text = text.replace("<example_tag>", (exp.getComment()!=null?exp.getComment():"Unknown"));
r.setText(text, 0);
这里 exp.getComment() = <b>Hello world</b>
如何显示<b>Hello world</b>
不显示<b></b> 标签?
谢谢
【问题讨论】: