diff --git a/app/views/mailer/budget_investment_created.html.erb b/app/views/mailer/budget_investment_created.html.erb index 8942a1606..f4ac21b61 100644 --- a/app/views/mailer/budget_investment_created.html.erb +++ b/app/views/mailer/budget_investment_created.html.erb @@ -5,14 +5,14 @@
- <%= t("mailers.budget_investment_created.intro_html", - author: @investment.author.name).html_safe %> + <%= sanitize(t("mailers.budget_investment_created.intro", + author: @investment.author.name)) %>
- <%= t("mailers.budget_investment_created.text_html", + <%= sanitize(t("mailers.budget_investment_created.text", investment: @investment.title, - budget: @investment.budget.name).html_safe %> + budget: @investment.budget.name)) %>
diff --git a/config/locales/en/mailers.yml b/config/locales/en/mailers.yml index 6434b8951..cf2341095 100644 --- a/config/locales/en/mailers.yml +++ b/config/locales/en/mailers.yml @@ -46,8 +46,8 @@ en: budget_investment_created: subject: "Thank you for creating an investment!" title: "Thank you for creating an investment!" - intro_html: "Hi %{author}," - text_html: "Thank you for creating your investment %{investment} for Participatory Budgets %{budget}." + intro: "Hi %{author}," + text: "Thank you for creating your investment %{investment} for Participatory Budgets %{budget}." follow_html: "We will inform you about how the process progresses, which you can also follow on %{link}." follow_link: "Participatory Budgets" sincerely: "Sincerely," diff --git a/config/locales/es/mailers.yml b/config/locales/es/mailers.yml index fa37c399a..5c0691c4a 100644 --- a/config/locales/es/mailers.yml +++ b/config/locales/es/mailers.yml @@ -46,8 +46,8 @@ es: budget_investment_created: subject: "¡Gracias por crear un proyecto!" title: "¡Gracias por crear un proyecto!" - intro_html: "Hola %{author}," - text_html: "Muchas gracias por crear tu proyecto %{investment} para los Presupuestos Participativos %{budget}." + intro: "Hola %{author}," + text: "Muchas gracias por crear tu proyecto %{investment} para los Presupuestos Participativos %{budget}." follow_html: "Te informaremos de cómo avanza el proceso, que también puedes seguir en la página de %{link}." follow_link: "Presupuestos participativos" sincerely: "Atentamente,"