From 60ae224115700772fac2e2c42a9f18c8796ded96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 1 Oct 2019 18:50:31 +0200 Subject: [PATCH] Use `tag` to mark a `
` as safe HTML Using `html_safe` on the whole text meant the translations were also considered HTML safe, but they are not supposed to have HTML. --- app/helpers/signature_sheets_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/signature_sheets_helper.rb b/app/helpers/signature_sheets_helper.rb index d40689837..20ef2e709 100644 --- a/app/helpers/signature_sheets_helper.rb +++ b/app/helpers/signature_sheets_helper.rb @@ -24,10 +24,10 @@ module SignatureSheetsHelper text_help += t("admin.signature_sheets.new.text_help.postal_code_note") end - text_help += "
" + text_help += tag(:br) text_help += t("admin.signature_sheets.new.text_help.required_fields_structure_note") - return text_help.html_safe + return text_help end def example_text_help