This commit is contained in:
eson 2018-12-20 02:06:50 +08:00
parent 887a0fd664
commit 0364fc077b

View File

@ -3,8 +3,6 @@ package parser
import ( import (
"encoding/json" "encoding/json"
"log" "log"
"strconv"
"strings"
"testing" "testing"
"github.com/davecgh/go-spew/spew" "github.com/davecgh/go-spew/spew"
@ -42,8 +40,8 @@ func (tt *Toutiao) ToDoParser(adstring string) (string, error) {
spew.Dump(adlist) spew.Dump(adlist)
for _, data := range adlist { for _, data := range adlist {
data = strconv.QuoteToASCII(data) // data = strconv.QuoteToASCII(data)
data = strings.Replace(data, "\\", "", -1) // data = strings.Replace(data, "\\", "", -1)
log.Println(data) log.Println(data)
var jdata interface{} var jdata interface{}