We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9b4686c + 81e4889 commit 36995ceCopy full SHA for 36995ce
goscraper.go
@@ -197,7 +197,7 @@ func (scraper *Scraper) parseDocument(doc *Document) error {
197
if cleanStr(attr.Key) == "rel" && cleanStr(attr.Val) == "canonical" {
198
canonical = true
199
}
200
- if cleanStr(attr.Key) == "rel" && cleanStr(attr.Val) == "icon" {
+ if cleanStr(attr.Key) == "rel" && strings.Contains(cleanStr(attr.Val), "icon") {
201
hasIcon = true
202
203
if cleanStr(attr.Key) == "href" {
0 commit comments