Skip to content

Commit

Permalink
Merge pull request #1895 from alphagov/fix-detailed-guide-govspeak
Browse files Browse the repository at this point in the history
Swap sanitize for raw when used in Govspeak component
  • Loading branch information
injms authored Nov 2, 2020
2 parents f663362 + 5c132c6 commit 2b47a4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/content_items/_body_with_related_links.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
direction: page_text_direction,
disable_youtube_expansions: true,
} do %>
<%= sanitize(@content_item.body) %>
<%= raw(@content_item.body) %>
<% end %>

<% if @content_item.last_updated && @content_item.schema_name == "help_page" %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/content_items/detailed_guide.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
} %>

<%= render 'govuk_publishing_components/components/govspeak', {} do %>
<%= sanitize(@content_item.govspeak_body[:content]) %>
<%= raw(@content_item.govspeak_body[:content]) %>
<% end %>

<div class="responsive-bottom-margin">
Expand Down

0 comments on commit 2b47a4f

Please sign in to comment.