作者 tangxvhui

调整创建文章时对段落内容的处理

... ... @@ -123,15 +123,11 @@ func (l *MiniCreateArticleLogic) MiniCreateArticle(req *types.MiniArticleCreateR
//切分文章分段
sectionList := []domain.ArticleSection{}
newStr := ""
for i := range req.Section {
strList := strings.Split(req.Section[i], "\n")
for i2 := range strList {
newStr := strings.TrimSpace(strList[i2])
if len(newStr) == 0 {
continue
}
newStr = template.HTMLEscapeString(newStr)
newStr = template.HTMLEscapeString(strList[i2])
newSection := domain.ArticleSection{
Id: 0,
CompanyId: author.CompanyId,
... ...