Skip to content

Commit

Permalink
Don't html-escape note description
Browse files Browse the repository at this point in the history
The description is already html-safe after to_html.
  • Loading branch information
AntonKhorev committed Feb 4, 2025
1 parent 06cece2 commit abcd228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/notes/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>">
Expand Down

0 comments on commit abcd228

Please sign in to comment.