DEV: Forward-compatibility with a nokogiri upgrade (#242)

This commit is contained in:
Jarek Radosz 2025-01-05 01:09:53 +01:00 committed by GitHub
parent 52461548fb
commit b5c1f8b27f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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