提交 d3fe7dfc 作者: chenshiqiang

adapt for title

上级 8e4276fc
...@@ -95,6 +95,7 @@ class KnowledgeServiceImpl implements IKnowledgeService { ...@@ -95,6 +95,7 @@ class KnowledgeServiceImpl implements IKnowledgeService {
File file = new File(filesStorage + knowledge.getFiles().get(0).getFilePath()); File file = new File(filesStorage + knowledge.getFiles().get(0).getFilePath());
html = DocUtil.convertDocStream2Html(new FileInputStream(file)); html = DocUtil.convertDocStream2Html(new FileInputStream(file));
String htmlWithTable = html.replace("</p>", "######</p>"); String htmlWithTable = html.replace("</p>", "######</p>");
htmlWithTable = htmlWithTable.replace("</title>", "######</title>");
contentStringList = Arrays.asList(htmlWithTable.split("######")); contentStringList = Arrays.asList(htmlWithTable.split("######"));
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论