Adds html entity unescaping

This commit is contained in:
sloum 2020-09-15 21:34:21 -07:00
parent 9967d08e10
commit cb14d2ddfa
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package gemini
import (
"fmt"
"html"
"strings"
)
@ -23,6 +24,7 @@ func ParseHTML(body, currentURL string) (string, []string) {
body = strings.Replace(body, "<", " <", -1)
body = strings.Replace(body, ">", "> ", -1)
body = html.UnescapeString(body)
fields = strings.Fields(body)
var text string