Skip to content

Commit 040ad90

Browse files
committed
update an example
1 parent fe057a4 commit 040ad90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ list := htmlquery.Find(doc, "//a[@href]")
7474
```go
7575
list := htmlquery.Find(doc, "//a/@href")
7676
for _ , n := range list{
77-
fmt.Println(htmlquery.SelectAttr(n, "href")) // output @href value
77+
fmt.Println(htmlquery.InnerText(n)) // output @href value
7878
}
7979
```
8080

0 commit comments

Comments
 (0)