This commit is contained in:
eson 2018-12-20 02:54:26 +08:00
parent 11ff68f951
commit 76811349e7

View File

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