mirror of
https://github.com/discourse/discourse-chat-integration.git
synced 2025-02-08 04:28:25 +00:00
DEV: Forward-compatibility with a nokogiri upgrade (#242)
This commit is contained in:
parent
52461548fb
commit
b5c1f8b27f
@ -10,7 +10,7 @@ module DiscourseChatIntegration::Provider::SlackProvider
|
||||
|
||||
def self.format(html = "")
|
||||
me = self.new
|
||||
parser = Nokogiri::HTML::SAX::Parser.new(me)
|
||||
parser = Nokogiri::HTML4::SAX::Parser.new(me, Encoding::UTF_8.to_s)
|
||||
parser.parse(html)
|
||||
me.excerpt
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user