FEATURE: Nokogumbo (#9577)

* FEATURE: Nokogumbo

Use Nokogumbo HTML parser.
This commit is contained in:
Krzysztof Kotlarek
2020-05-05 13:46:57 +10:00
committed by GitHub
parent b8b1cbbfb9
commit 9bff0882c3
50 changed files with 165 additions and 179 deletions

View File

@ -11,7 +11,7 @@ module RetrieveTitle
def self.extract_title(html)
title = nil
if doc = Nokogiri::HTML(html)
if doc = Nokogiri::HTML5(html)
title = doc.at('title')&.inner_text