Преглед на файлове

核心观点解析样式优化

xingzai преди 2 години
родител
ревизия
f596f54789
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      services/article.go

+ 1 - 0
services/article.go

@@ -1809,6 +1809,7 @@ func ArticleAnnotation(item *models.HomeArticle) (annotation string) {
 	}
 	if item.Annotation != "" {
 		annotation = strings.Replace(item.Annotation, "<br>", "", -1)
+		annotation = strings.Replace(item.Annotation, "&nbsp;", "", -1)
 	} else {
 		return
 	}