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
@@ -168,7 +168,7 @@ class DiscourseDiff
|
||||
end
|
||||
|
||||
def tokenize_html_blocks(html)
|
||||
Nokogiri::HTML.fragment(html).search("./*").map(&:to_html)
|
||||
Nokogiri::HTML5.fragment(html).search("./*").map(&:to_html)
|
||||
end
|
||||
|
||||
def tokenize_html(html)
|
||||
|
||||
Reference in New Issue
Block a user