fixed one event names showing escaped characters
This commit is contained in:
+2
-1
@@ -3,6 +3,7 @@ package main
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"html"
|
||||
"log/slog"
|
||||
"net/http"
|
||||
"net/url"
|
||||
@@ -92,7 +93,7 @@ func ScrapeONEEvent(client ClientScraper, e *event.Event) error {
|
||||
data := ONEEventData{}
|
||||
_ = json.Unmarshal([]byte(page.Find("#site-main script[type=\"application/ld+json\"]").Text()), &data)
|
||||
|
||||
e.Name = data.Name
|
||||
e.Name = html.UnescapeString(data.Name)
|
||||
e.Location = data.Location.Name
|
||||
|
||||
if len(data.Image) > 2 {
|
||||
|
||||
Reference in New Issue
Block a user