Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 314f654

Browse files
committed
noko5
1 parent d3b5c65 commit 314f654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/translation/post_detection_text.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def self.get_text(post)
88
cooked = post.cooked
99
return if cooked.blank?
1010

11-
doc = Nokogiri::HTML.fragment(cooked)
11+
doc = Nokogiri::HTML5.fragment(cooked)
1212
original = doc.text.strip
1313

1414
# quotes and blockquotes

0 commit comments

Comments
 (0)