forked from sloum/bombadillo
Adds html entity unescaping
This commit is contained in:
parent
9967d08e10
commit
cb14d2ddfa
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue