I have a small web rich text editor that have some features like bolb, italic, and so on...
我有一个小的Web富文本编辑器,有一些功能,如bolb,italic等等......
The text generated is html, and I would like to insert that text inside a word document bookmarks.
生成的文本是html,我想在word文档书签中插入该文本。
Putting the text into the bookmarks is not a problem. However, I have problems because of the text format (with the bolds for example).
将文本放入书签不是问题。但是,由于文本格式(例如粗体),我遇到了问题。
Is there a fast way to "convert" text from html to doc, or just a way to include html into a word document?
有没有一种快速的方法将文本从html“转换”为doc,或者只是将html包含到word文档中?
This is an exemple:
这是一个例子:
<p>Hello <strong>world<strong/></p>
This text should just appear "Hello World" in the word bookmark.
此文本应在单词bookmark中显示为“Hello World”。
Thanks in advance.
提前致谢。
1 个解决方案
#1
Enclosing the html in ... <\body> tags should do the trick.
将html包含在...... <\ body>标签中应该可以解决问题。
#1
Enclosing the html in ... <\body> tags should do the trick.
将html包含在...... <\ body>标签中应该可以解决问题。