213
This commit is contained in:
parent
eb29e67e4b
commit
875c665542
|
@ -44,12 +44,12 @@ func (tt *Toutiao) ToDoParser(adstring string) (string, error) {
|
||||||
|
|
||||||
for _, data := range adlist {
|
for _, data := range adlist {
|
||||||
data = strings.Trim(data, "\"")
|
data = strings.Trim(data, "\"")
|
||||||
unq, err := strconv.Unquote("\"" + data + "\"")
|
unq, err := strconv.Unquote(data)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
} else {
|
} else {
|
||||||
unq, err = strconv.Unquote("\"" + unq + "\"")
|
unq, err = strconv.Unquote(unq)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user