mirror of
https://github.com/discourse/discourse-chat-integration.git
synced 2025-07-01 03:42:10 +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 = "")
|
def self.format(html = "")
|
||||||
me = self.new
|
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)
|
parser.parse(html)
|
||||||
me.excerpt
|
me.excerpt
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user