Commit 1ac20eab authored by 成旭东's avatar 成旭东

项目介绍编辑 存储纯文本去掉html节点和回车键

parent ae2eaf48
Pipeline #29411 passed with stage
in 2 minutes 24 seconds
......@@ -138,7 +138,7 @@ const ProjectDetailComponent = (props: any) => {
// 去掉html标签只展示文字
const deleteHtmlLabel = (str: string) => {
const htmlReg = /<\/?.+?\/?>/g;
const htmlReg = /(<\/?.+?\/?>)|↵/g;
return str && str.replace(htmlReg, '');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment