mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Nokogumbo (#9577)
* FEATURE: Nokogumbo Use Nokogumbo HTML parser.
This commit is contained in:
committed by
GitHub
parent
b8b1cbbfb9
commit
9bff0882c3
@@ -218,7 +218,7 @@ class ImportScripts::Jive < ImportScripts::Base
|
||||
raw = raw.dup
|
||||
raw = raw[5..-6]
|
||||
|
||||
doc = Nokogiri::HTML.fragment(raw)
|
||||
doc = Nokogiri::HTML5.fragment(raw)
|
||||
doc.css('img').each do |img|
|
||||
img.remove if img['class'] == "jive-image"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user