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