diff --git a/hoot.go b/hoot.go index 03029e1..14d3005 100644 --- a/hoot.go +++ b/hoot.go @@ -53,6 +53,10 @@ func hootextractor(r io.Reader, url string, seen map[string]bool) string { var htf htfilter.Filter htf.Imager = func(node *html.Node) string { + alt := htfilter.GetAttr(node, "alt") + if htfilter.HasClass(node, "Emoji") && alt != "" { + return alt + } return fmt.Sprintf(" ", htfilter.GetAttr(node, "src")) }