我有很多由多个嵌套列表组成的文本数据片段,所有这些都组合成一个单词文档,需要保存到数据库字段中,以便最终在浏览器中呈现。我愿意剪切并粘贴到数据库中,但我需要从 Word 格式转换为简单、干净的 html。
例如,在 Word 中我有:
本题分为两部分,共6分
1. Answer should cover
- List item (2 marks)
- List item (2 marks)
- List item (2 marks)
2. And logically tie the items together (2 marks)
我需要的是:
<p> This question has two parts, for a total of 6 marks </p>
<ol type="1">
<li> Answer should cover <ul> <li>List item (2 marks)</li>...</ul>
etc.
有什么简单的方法可以做到这一点吗?
似乎 Word另存为网页需要的清理工作与手动完成一样多。
粘贴到 Visual Studio 设计窗口也好不到哪里去。