Skip to content

Commit 656ead4

Browse files
committed
Use html instead of text to keep tags
1 parent 5aa9492 commit 656ead4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/services/discourse_ai/translator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def translate
2929
feature_name: "translator-translate",
3030
)
3131

32-
(Nokogiri::HTML5.fragment(llm_translation).at("translation")&.text || llm_translation)
32+
(Nokogiri::HTML5.fragment(llm_translation).at("translation")&.inner_html || llm_translation)
3333
end
3434

3535
private

0 commit comments

Comments
 (0)