Merge pull request #10081 from mfo/US/fix-motivation-tags

correctif(attestation): ETQ usager, je ne souhaite pas voir apparaitre des balaises HTML dans mon attestation au format pdf
This commit is contained in:
Paul Chavard 2024-03-08 12:14:57 +00:00 committed by GitHub
commit a898675145
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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))