Skip to content

Commit

Permalink
Merge pull request #2138 from alphagov/fix-escape
Browse files Browse the repository at this point in the history
Fix exposed html from translation
  • Loading branch information
maxgds authored Jun 9, 2021
2 parents bff5929 + d5750d1 commit 7746a10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/content_items/consultation.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<% if @content_item.unopened? %>
<% content_item_unopened = capture do %>
<%= t("consultation.opens") %>
<%= raw(t("consultation.opens")) %>
<%= @content_item.opening_date_midnight? ? t("consultation.on") : t("consultation.at") %>
<time datetime="<%= @content_item.opening_date_time %>"><%= @content_item.opening_date %></time>
<% end %>
Expand All @@ -32,7 +32,7 @@

<% elsif @content_item.pending_final_outcome? %>
<% content_item_final_outcome = capture do %>
<%= t("consultation.visit_soon") %>
<%= raw(t("consultation.visit_soon")) %>
<% end %>
<%= render 'govuk_publishing_components/components/notice',
title: 'We are analysing your feedback',
Expand Down

0 comments on commit 7746a10

Please sign in to comment.