diff --git a/parser_test.go b/parser_test.go index 1597460..141083e 100644 --- a/parser_test.go +++ b/parser_test.go @@ -30,7 +30,12 @@ func (tt *Toutiao) GetSpiderID() int { func (tt *Toutiao) ToDoParser(adstring string) (string, error) { log.Println(adstring) - adstring = strconv.Quote(adstring) + unq, err := strconv.Unquote(adstring) + if err != nil { + log.Println(err) + } else { + adstring = unq + } var adlist interface{} if err := json.Unmarshal([]byte(adstring), &adlist); err != nil { log.Println(err)