diff --git a/parser_test.go b/parser_test.go index 3a96434..6280b20 100644 --- a/parser_test.go +++ b/parser_test.go @@ -45,10 +45,17 @@ func (tt *Toutiao) ToDoParser(adstring string) (string, error) { for _, data := range adlist { data = strings.Trim(data, "\"") unq, err := strconv.Unquote("\"" + data + "\"") + if err != nil { log.Println(err) } else { - data = unq + unq, err = strconv.Unquote("\"" + unq + "\"") + if err != nil { + log.Println(err) + } else { + data = unq + } + } log.Println(data) data = strings.Replace(data, "\\", "", -1)