aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader/scraper/scraper.go
diff options
context:
space:
mode:
Diffstat (limited to 'reader/scraper/scraper.go')
-rw-r--r--reader/scraper/scraper.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/reader/scraper/scraper.go b/reader/scraper/scraper.go
index fd5ba33..045bfbc 100644
--- a/reader/scraper/scraper.go
+++ b/reader/scraper/scraper.go
@@ -75,13 +75,7 @@ func scrapContent(page io.Reader, rules string) (string, error) {
document.Find(rules).Each(func(i int, s *goquery.Selection) {
var content string
- // For some inline elements, we get the parent.
- if s.Is("img") || s.Is("iframe") {
- content, _ = s.Parent().Html()
- } else {
- content, _ = s.Html()
- }
-
+ content, _ = goquery.OuterHtml(s)
contents += content
})