From 009b327fbebd74d69c45028c41c5e6ac6addeb66 Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Tue, 17 Sep 2024 10:54:42 +0100 Subject: [PATCH] Revert "Fix apostrophes and ampersands in users page too" This reverts commit 44bcbfd4f437e7bb4d52488b6c6b404e3959e4dd. --- app/views/users/edit.html.erb | 2 +- app/views/users/show.html.erb | 2 +- app/views/users/toggle_active.html.erb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erb index 6890c5b38..6fdfdb5aa 100644 --- a/app/views/users/edit.html.erb +++ b/app/views/users/edit.html.erb @@ -1,4 +1,4 @@ -<% content_for :title, current_user == @user ? "Change your personal details" : "Change #{sanitise_characters(@user.name.presence) || 'this user'}’s personal details" %> +<% content_for :title, current_user == @user ? "Change your personal details" : "Change #{@user.name.presence || 'this user'}’s personal details" %> <% content_for :before_content do %> <%= govuk_back_link(href: :back) %> diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index cfd21e270..df8c0e915 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -1,4 +1,4 @@ -<% content_for :title, current_user == @user ? "Your account" : "#{sanitise_characters(@user.name.presence) || @user.email}’s account" %> +<% content_for :title, current_user == @user ? "Your account" : "#{@user.name.presence || @user.email}’s account" %> <% if current_user.support? %> <% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: { diff --git a/app/views/users/toggle_active.html.erb b/app/views/users/toggle_active.html.erb index 00ae416c3..40eaca551 100644 --- a/app/views/users/toggle_active.html.erb +++ b/app/views/users/toggle_active.html.erb @@ -1,4 +1,4 @@ -<% content_for :title, "#{action.capitalize} #{sanitise_characters(@user.name.presence) || @user.email}’s account" %> +<% content_for :title, "#{action.capitalize} #{@user.name.presence || @user.email}’s account" %>