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

committed by
GitHub

parent
b8b1cbbfb9
commit
9bff0882c3
@ -8,14 +8,14 @@ describe Email::Styles do
|
||||
def basic_fragment(html)
|
||||
styler = Email::Styles.new(html)
|
||||
styler.format_basic
|
||||
Nokogiri::HTML.fragment(styler.to_html)
|
||||
Nokogiri::HTML5.fragment(styler.to_html)
|
||||
end
|
||||
|
||||
def html_fragment(html)
|
||||
styler = Email::Styles.new(html)
|
||||
styler.format_basic
|
||||
styler.format_html
|
||||
Nokogiri::HTML.fragment(styler.to_html)
|
||||
Nokogiri::HTML5.fragment(styler.to_html)
|
||||
end
|
||||
|
||||
context "basic formatter" do
|
||||
|
Reference in New Issue
Block a user