Update readability doc tags
This commit is contained in:
@@ -5,7 +5,7 @@ module Adamantium
|
|||||||
class PageCacher
|
class PageCacher
|
||||||
def call(url:, &block)
|
def call(url:, &block)
|
||||||
tempfile = Down.download(url)
|
tempfile = Down.download(url)
|
||||||
content = Readability::Document.new(tempfile.read, tags: %w[div section header p h1 h2 h3 h4 h5 h6 ol ul li table td tr thead tbody a code pre], attributes: %w[href]).content
|
content = Readability::Document.new(tempfile.read, tags: %w[div section header p h1 h2 h3 h4 h5 h6 ol ul li table td tr thead tbody a code pre article], attributes: %w[href]).content
|
||||||
yield content
|
yield content
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user