From eeda3312a9153a5ecb29fdb84a784d6d107d4a0f Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Tue, 15 Feb 2022 17:03:03 +0100 Subject: [PATCH] html safe --- app/views/admin/application/property/_text.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/application/property/_text.html.erb b/app/views/admin/application/property/_text.html.erb index 6b31f7e83..0fd8acc44 100644 --- a/app/views/admin/application/property/_text.html.erb +++ b/app/views/admin/application/property/_text.html.erb @@ -18,6 +18,6 @@ end <% if value.blank? %> <i class="fa fa-exclamation-circle text-danger"></i> <% else %> - <%= strip_tags(value).truncate 200 %> + <%= strip_tags(value).truncate(200).html_safe %> <% end %> </p> -- GitLab