From abcd22854ce39ea61b06924e3420c6ddc81193a0 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Tue, 4 Feb 2025 18:29:47 +0300 Subject: [PATCH] Don't html-escape note description The description is already html-safe after to_html. --- app/views/notes/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/notes/show.html.erb b/app/views/notes/show.html.erb index 3d9b4a9ba..4f20cdd44 100644 --- a/app/views/notes/show.html.erb +++ b/app/views/notes/show.html.erb @@ -5,7 +5,7 @@

<%= t(".description") %>

- <%= h(note_description(@note.author, @note.description).to_html) %> + <%= note_description(@note.author, @note.description).to_html %>
-- 2.39.5