twitter archive escapes html entities in plain text...
Ted Unangst tedu@tedunangst.com
Tue, 12 Nov 2019 19:12:19 -0500
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
import.go
→
import.go
@@ -18,6 +18,7 @@
import ( "encoding/json" "fmt" + "html" "io/ioutil" "log" "os"@@ -102,6 +103,8 @@ Public: true,
Whofore: 2, } noise := t.Full_text + // unbelievable + noise = html.UnescapeString(noise) for _, r := range t.Entities.Urls { noise = strings.Replace(noise, r.Url, r.Expanded_url, -1) }