fix(attestation): strip all tags from attestation

This commit is contained in:
Martin 2024-03-08 09:57:28 +01:00
parent a247ec6c12
commit d0e2df1aa0

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