MCPcopy Index your code
hub / github.com/apache/answer / clearEmoji

Function clearEmoji

pkg/htmltext/htmltext.go:79–88  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

77}
78
79func clearEmoji(s string) string {
80 var ret strings.Builder
81 rs := []rune(s)
82 for i := range rs {
83 if len(string(rs[i])) != 4 {
84 ret.WriteString(string(rs[i]))
85 }
86 }
87 return ret.String()
88}
89
90func convertChinese(content string) string {
91 has := checker.IsChinese(content)

Callers 1

UrlTitleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected