From 0f40eedc28ad5d216387715ca60e362b17be97e1 Mon Sep 17 00:00:00 2001 From: eson <474420502@qq.com> Date: Thu, 20 Dec 2018 01:53:21 +0800 Subject: [PATCH] 213 --- parser_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parser_test.go b/parser_test.go index ae5d5b9..2d6bfeb 100644 --- a/parser_test.go +++ b/parser_test.go @@ -4,6 +4,7 @@ import ( "encoding/json" "log" "strconv" + "strings" "testing" "github.com/davecgh/go-spew/spew" @@ -31,6 +32,7 @@ func (tt *Toutiao) ToDoParser(adstring string) (string, error) { log.Println(adstring) adstring = strconv.QuoteToASCII(adstring) + adstring = strings.Replace(adstring, "\\", "", -1) var adlist interface{} if err := json.Unmarshal([]byte(adstring), &adlist); err != nil {