优化
This commit is contained in:
parent
7c4fdc9084
commit
993fa3809d
|
@ -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("</%s>", strings.Trim(s, "<>"))
|
||||
})
|
||||
return strings.Join(r, "")
|
||||
|
|
|
@ -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("</%s>", strings.Trim(s, "<>"))
|
||||
})
|
||||
return strings.Join(r, "")
|
||||
|
|
Loading…
Reference in New Issue
Block a user