diff --git a/string.go b/string.go index 10b5bd8..44414cf 100644 --- a/string.go +++ b/string.go @@ -167,9 +167,9 @@ func (s *stringOperate) ClearSpace(src string, spaceList ...string) string { if len(spaceList) == 0 { spaceList = []string{ " ", - `\r`, - `\n`, - `\t`, + "\\r", + "\\n", + "\\t", } } for _, item := range spaceList {