This commit is contained in:
eson 2018-12-20 03:18:44 +08:00
parent 99e0916baa
commit c6c0d81a10

View File

@ -43,10 +43,14 @@ func (tt *Toutiao) ToDoParser(adstring string) (string, error) {
spew.Dump(adlist)
for _, data := range adlist {
data = strconv.QuoteToASCII(data)
unq, _ := strconv.Unquote(data)
data = strings.Trim(data, "\"")
unq, err := strconv.Unquote("\"" + data + "\"")
if err != nil {
log.Println(err)
} else {
data = unq
}
log.Println(data)
log.Println(unq)
data = strings.Replace(data, "\\", "", -1)
log.Println(data)