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
@ -146,7 +146,7 @@ describe EmbedController do
|
||||
|
||||
get '/embed/comments', params: { embed_url: embed_url }, headers: headers
|
||||
|
||||
html = Nokogiri::HTML.fragment(response.body)
|
||||
html = Nokogiri::HTML5.fragment(response.body)
|
||||
css_link = html.at("link[data-target=embedded_theme]").attribute("href").value
|
||||
|
||||
get css_link
|
||||
|
Reference in New Issue
Block a user