From f26ae87d6c7fee30116033eb605066a67d6cb771 Mon Sep 17 00:00:00 2001 From: Ian James Date: Wed, 21 Oct 2020 13:53:21 +0100 Subject: [PATCH] Update Govspeak in body with related links partial --- app/views/content_items/_body_with_related_links.html.erb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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" %>