json uit html -> html.Unescape
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"html"
|
||||
|
||||
e "codeberg.org/pebbe/errors"
|
||||
|
||||
"encoding/xml"
|
||||
@@ -165,7 +167,7 @@ func doArticle(filename string, url string, timestamp time.Time, needUpdate bool
|
||||
if i2 < i1 {
|
||||
ok = false
|
||||
} else {
|
||||
s = s[i1:i2]
|
||||
s = html.UnescapeString(s[i1:i2])
|
||||
}
|
||||
}
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user