diff --git a/app/views/content_items/_body_with_related_links.html.erb b/app/views/content_items/_body_with_related_links.html.erb index 2425ae88ba..c41f2c5db0 100644 --- a/app/views/content_items/_body_with_related_links.html.erb +++ b/app/views/content_items/_body_with_related_links.html.erb @@ -9,9 +9,11 @@
- <%= render 'govuk_publishing_components/components/govspeak', - { direction: page_text_direction, disable_youtube_expansions: true } do %> - <%= raw @content_item.body %> + <%= render 'govuk_publishing_components/components/govspeak', { + direction: page_text_direction, + disable_youtube_expansions: true + } do %> + <%= sanitize(@content_item.body) %> <% end %> <% if @content_item.last_updated && @content_item.schema_name == "help_page" %>