correctif(messagerie): autorise l'usage des balises <a> dans la messagerie quand les messages viennent de l'administration

This commit is contained in:
Martin 2023-02-13 11:08:54 +01:00 committed by mfo
parent 041d1c372f
commit 0a386994e5

View file

@ -60,7 +60,7 @@ class Dossiers::MessageComponent < ApplicationComponent
t('.deleted_body')
else
body_formatted = commentaire.sent_by_system? ? commentaire.body : simple_format(commentaire.body)
sanitize(body_formatted)
sanitize(body_formatted, commentaire.sent_by_system? ? { scrubber: Sanitizers::MailScrubber.new } : {})
end
end