Use tag to mark a <br> 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.
This commit is contained in:
Javi Martín
2019-10-01 18:50:31 +02:00
parent 6b12da7654
commit 60ae224115

View File

@@ -24,10 +24,10 @@ module SignatureSheetsHelper
text_help += t("admin.signature_sheets.new.text_help.postal_code_note")
end
text_help += "<br/>"
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