From d496c6163b12618044964e05b02be72603b8c059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Drga?= Date: Thu, 12 Dec 2024 16:10:19 +0100 Subject: [PATCH] html safe tags for description --- app/views/phase_revision/pdf.html.erb | 2 +- app/views/phase_revision/show.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/phase_revision/pdf.html.erb b/app/views/phase_revision/pdf.html.erb index 373ea63..ae5917f 100644 --- a/app/views/phase_revision/pdf.html.erb +++ b/app/views/phase_revision/pdf.html.erb @@ -11,7 +11,7 @@ <% end %>

<% end %> -

<%= @phase_revision.description %>

+

<%= @phase_revision.description&.html_safe %>

diff --git a/app/views/phase_revision/show.html.erb b/app/views/phase_revision/show.html.erb index 74af6cf..3e362fb 100644 --- a/app/views/phase_revision/show.html.erb +++ b/app/views/phase_revision/show.html.erb @@ -14,7 +14,7 @@ <% end %>

<% end %> -

<%= @phase_revision.description %>

+

<%= @phase_revision.description&.html_safe %>