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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user