diff --git a/parser_test.go b/parser_test.go index edb3865..e805dc1 100644 --- a/parser_test.go +++ b/parser_test.go @@ -43,13 +43,9 @@ func (tt *Toutiao) ToDoParser(adstring string) (string, error) { spew.Dump(adlist) for _, data := range adlist { - unq, err := strconv.Unquote(data) - log.Println(unq) - if err != nil { - log.Println(unq) - } else { - data = unq - } + data = strconv.QuoteToASCII(data) + log.Println(data) + data = strings.Replace(data, "\\", "", -1) log.Println(data)