maxiaoshan 3 years ago
parent
commit
045e15969d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/spiderutil/clearHtml.go

+ 1 - 0
src/spiderutil/clearHtml.go

@@ -62,6 +62,7 @@ func NewCut() *Cut {
 
 //清理HTML标签
 func (c *Cut) ClearHtml(src string) string {
+	src = c.replBlankLine.ReplaceAllString(src, "")
 	src = strings.Replace(src, ">\n", ">", -1)
 	src = strings.Replace(src, " ", "", -1)
 	//标签全转小写