Skip to content

Commit ea63322

Browse files
committed
html_safe for amendment title to avoid escape from i18n
1 parent 7f8b62f commit ea63322

File tree

1 file changed

+1
-1
lines changed
  • decidim-proposals/app/views/decidim/proposals/proposals

1 file changed

+1
-1
lines changed

decidim-proposals/app/views/decidim/proposals/proposals/show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ extra_admin_link(
4848
<%= emendation_announcement_for @proposal %>
4949

5050
<% if @proposal.emendation? %>
51-
<h1 class="h2 decorator"><%= t("changes_at_title", scope: "decidim.proposals.proposals.show", title: present(@proposal.amendable).title(links: true, html_escape: true)) %></h1>
51+
<h1 class="h2 decorator"><%= t("changes_at_title", scope: "decidim.proposals.proposals.show", title: present(@proposal.amendable).title(links: true, html_escape: true)).html_safe %></h1>
5252
<% else %>
5353
<h1 class="h2 decorator"><%= present(@proposal).title(links: true, html_escape: true) %></h1>
5454
<% end %>

0 commit comments

Comments
 (0)