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