json uit html -> html.Unescape
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
"html"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
@@ -162,7 +163,7 @@ func doArticle(filename string, url string, title string, timestamp time.Time, n
|
||||
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