From 8f42af3716cb1ef1c78535f1ee950649f6e5925f Mon Sep 17 00:00:00 2001 From: eson <474420502@qq.com> Date: Thu, 20 Dec 2018 01:51:32 +0800 Subject: [PATCH] 213 --- parser_test.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/parser_test.go b/parser_test.go index 141083e..ae5d5b9 100644 --- a/parser_test.go +++ b/parser_test.go @@ -30,12 +30,8 @@ func (tt *Toutiao) GetSpiderID() int { func (tt *Toutiao) ToDoParser(adstring string) (string, error) { log.Println(adstring) - unq, err := strconv.Unquote(adstring) - if err != nil { - log.Println(err) - } else { - adstring = unq - } + adstring = strconv.QuoteToASCII(adstring) + var adlist interface{} if err := json.Unmarshal([]byte(adstring), &adlist); err != nil { log.Println(err)