From 57f2979264ef69159a8c488c909e4377575766ee Mon Sep 17 00:00:00 2001 From: eson <474420502@qq.com> Date: Thu, 20 Dec 2018 01:48:24 +0800 Subject: [PATCH] 213 --- parser_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parser_test.go b/parser_test.go index dd8cbdd..1597460 100644 --- a/parser_test.go +++ b/parser_test.go @@ -3,6 +3,7 @@ package parser import ( "encoding/json" "log" + "strconv" "testing" "github.com/davecgh/go-spew/spew" @@ -29,6 +30,7 @@ func (tt *Toutiao) GetSpiderID() int { func (tt *Toutiao) ToDoParser(adstring string) (string, error) { log.Println(adstring) + adstring = strconv.Quote(adstring) var adlist interface{} if err := json.Unmarshal([]byte(adstring), &adlist); err != nil { log.Println(err)