From 993fa3809d022742ec128d465b93f8ac3bdeebe0 Mon Sep 17 00:00:00 2001 From: xing Date: Sat, 24 Sep 2022 21:52:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helper/func.go | 2 +- plugins/Excerpt.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helper/func.go b/helper/func.go index 068cc53..6d9bac5 100644 --- a/helper/func.go +++ b/helper/func.go @@ -146,7 +146,7 @@ func CloseHtmlTag(str string) string { } tagss = append(tagss, ss) } - r := SliceMap[string, string](ClearClosedTag(tagss), func(s string) string { + r := SliceMap(ClearClosedTag(tagss), func(s string) string { return fmt.Sprintf("", strings.Trim(s, "<>")) }) return strings.Join(r, "") diff --git a/plugins/Excerpt.go b/plugins/Excerpt.go index cba6352..98d5c7f 100644 --- a/plugins/Excerpt.go +++ b/plugins/Excerpt.go @@ -83,7 +83,7 @@ func CloseHtmlTag(str string) string { } tagss = append(tagss, ss) } - r := helper.SliceMap[string, string](helper.ClearClosedTag(tagss), func(s string) string { + r := helper.SliceMap(helper.ClearClosedTag(tagss), func(s string) string { return fmt.Sprintf("", strings.Trim(s, "<>")) }) return strings.Join(r, "")