fix: set encoding to utf8 for nokogiri gem if encoding cannot be determined

This commit is contained in:
Vishnu Narayanan
2024-01-08 16:53:03 +05:30
parent 68062216e4
commit de8dc7d314
+1 -1
View File
@@ -10,7 +10,7 @@ class HtmlParser
end
def document
@document ||= Nokogiri::HTML(raw_body)
@document ||= Nokogiri::HTML(raw_body, nil, 'UTF-8')
end
def filter_replies!