diff --git a/hoot.go b/hoot.go index 5f2e2e0..03029e1 100644 --- a/hoot.go +++ b/hoot.go @@ -88,7 +88,7 @@ func hootextractor(r io.Reader, url string, seen map[string]bool) string { if author != wanted { continue } - for img := imgsel.MatchFirst(twp); img != nil; imgsel.MatchFirst(twp) { + for _, img := range imgsel.MatchAll(twp) { img.Parent.RemoveChild(img) div.AppendChild(img) }