From d0e2df1aa0354a63a80b9e128b392ca0b40e7766 Mon Sep 17 00:00:00 2001 From: Martin Date: Fri, 8 Mar 2024 09:57:28 +0100 Subject: [PATCH] fix(attestation): strip all tags from attestation --- app/views/administrateurs/attestation_templates/show.pdf.prawn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/administrateurs/attestation_templates/show.pdf.prawn b/app/views/administrateurs/attestation_templates/show.pdf.prawn index 287d7951a..3b2b89f2e 100644 --- a/app/views/administrateurs/attestation_templates/show.pdf.prawn +++ b/app/views/administrateurs/attestation_templates/show.pdf.prawn @@ -20,7 +20,7 @@ max_logo_height = 50.mm max_signature_size = 50.mm def normalize_pdf_text(text) - text&.tr("\t", ' ') + strip_tags(text&.tr("\t", ' ')) end title = normalize_pdf_text(@attestation.fetch(:title))