We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ea947a commit ff5b3f6Copy full SHA for ff5b3f6
app/views/content_items/world_location_news_article.html.erb
@@ -27,9 +27,11 @@
27
credit: @content_item.image["credit"],
28
caption: @content_item.image["caption"] if @content_item.image %>
29
30
- <%= render 'govuk_publishing_components/components/govspeak',
31
- content: @content_item.body.html_safe,
32
- direction: page_text_direction %>
+ <%= render 'govuk_publishing_components/components/govspeak', {
+ direction: page_text_direction,
+ } do %>
33
+ <%= sanitize(@content_item.body) %>
34
+ <% end %>
35
</div>
36
37
<div class="dont-print responsive-bottom-margin">
0 commit comments