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, "")