This commit is contained in:
eson 2018-12-20 03:20:56 +08:00
parent c6c0d81a10
commit eb29e67e4b

View File

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