Skip to content

Commit ff5b3f6

Browse files
committed
Update Govspeak on world location news article
1 parent 9ea947a commit ff5b3f6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/views/content_items/world_location_news_article.html.erb

+5-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@
2727
credit: @content_item.image["credit"],
2828
caption: @content_item.image["caption"] if @content_item.image %>
2929

30-
<%= render 'govuk_publishing_components/components/govspeak',
31-
content: @content_item.body.html_safe,
32-
direction: page_text_direction %>
30+
<%= render 'govuk_publishing_components/components/govspeak', {
31+
direction: page_text_direction,
32+
} do %>
33+
<%= sanitize(@content_item.body) %>
34+
<% end %>
3335
</div>
3436

3537
<div class="dont-print responsive-bottom-margin">

0 commit comments

Comments
 (0)