mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FEATURE: Nokogumbo (#9577)
* FEATURE: Nokogumbo Use Nokogumbo HTML parser.
This commit is contained in:

committed by
GitHub

parent
b8b1cbbfb9
commit
9bff0882c3
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user