]> git.openstreetmap.org Git - rails.git/commitdiff
Don't html-escape note description
authorAnton Khorev <tony29@yandex.ru>
Tue, 4 Feb 2025 15:29:47 +0000 (18:29 +0300)
committerAnton Khorev <tony29@yandex.ru>
Tue, 4 Feb 2025 15:29:47 +0000 (18:29 +0300)
The description is already html-safe after to_html.

app/views/notes/show.html.erb

index 3d9b4a9bace5aafa7d1a378abc6da3ed1a0bf54e..4f20cdd441a227329bc4fca28bcf572c3ad5d016 100644 (file)
@@ -5,7 +5,7 @@
 <div>
   <h4><%= t(".description") %></h4>
   <div class="overflow-hidden ms-2">
-    <%= h(note_description(@note.author, @note.description).to_html) %>
+    <%= note_description(@note.author, @note.description).to_html %>
   </div>
 
   <div class="details" data-coordinates="<%= @note.lat %>,<%= @note.lon %>" data-status="<%= @note.status %>">