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 6c1768c02..92547232c 100644 --- a/app/views/content_items/_body_with_related_links.html.erb +++ b/app/views/content_items/_body_with_related_links.html.erb @@ -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" %> diff --git a/app/views/content_items/detailed_guide.html.erb b/app/views/content_items/detailed_guide.html.erb index 9b418a019..d0f81bd60 100644 --- a/app/views/content_items/detailed_guide.html.erb +++ b/app/views/content_items/detailed_guide.html.erb @@ -30,7 +30,7 @@ } %> <%= render 'govuk_publishing_components/components/govspeak', {} do %> - <%= sanitize(@content_item.govspeak_body[:content]) %> + <%= raw(@content_item.govspeak_body[:content]) %> <% end %>