You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you should use htmlquery.InnerText() to get the value.
s := `<doc><a href="example.com"></a></doc>`doc, _ := htmlquery.Parse(strings.NewReader(s))a := htmlquery.FindOne(doc, ***@***.***")if htmlquery.InnerText(a) != "example.com" {
fmt.Println("error")
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADT3UDEGCCZRE5D7B32G5TPU25X5ANCNFSM4HMHOV2Q>
.
Hello,
I think the attribute selector, e.g. "@href", should return the value of the attribute, NOT the name of the attribute.
The text was updated successfully, but these errors were encountered: