213
This commit is contained in:
parent
c6c0d81a10
commit
eb29e67e4b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user