diff --git a/app/views/mailer/budget_investment_unfeasible.html.erb b/app/views/mailer/budget_investment_unfeasible.html.erb index e31f59b7a..b20d1e421 100644 --- a/app/views/mailer/budget_investment_unfeasible.html.erb +++ b/app/views/mailer/budget_investment_unfeasible.html.erb @@ -4,7 +4,7 @@ <%= t("mailers.budget_investment_unfeasible.hi") %>

-

+

<%= @investment.unfeasibility_explanation %>

diff --git a/app/views/mailer/comment.html.erb b/app/views/mailer/comment.html.erb index 44c4af83e..7a08045b5 100644 --- a/app/views/mailer/comment.html.erb +++ b/app/views/mailer/comment.html.erb @@ -13,9 +13,9 @@ <%= link_to @commentable.title, commentable_url(@commentable), style: "color: #2895F1; text-decoration:none;" %>

-

- <%= sanitize_and_auto_link @comment.body %> -

+
+ <%= simple_format sanitize_and_auto_link(@comment.body), {}, sanitize: false %> +

<%= sanitize(t("mailers.config.unsubscribe_text", diff --git a/app/views/mailer/evaluation_comment.html.erb b/app/views/mailer/evaluation_comment.html.erb index 4feafc181..8eb277d9c 100644 --- a/app/views/mailer/evaluation_comment.html.erb +++ b/app/views/mailer/evaluation_comment.html.erb @@ -16,8 +16,10 @@ )) %>

- <%= t("mailers.evaluation_comment.commenter_info", commenter: @email.comment.author.name, time: l(@email.comment.created_at)) %> -
+

+ <%= t("mailers.evaluation_comment.commenter_info", commenter: @email.comment.author.name, time: l(@email.comment.created_at)) %> +

+
<%= simple_format sanitize_and_auto_link(@email.comment.body), {}, sanitize: false %>
diff --git a/app/views/mailer/reply.html.erb b/app/views/mailer/reply.html.erb index 2aa9f2f75..5a13c9687 100644 --- a/app/views/mailer/reply.html.erb +++ b/app/views/mailer/reply.html.erb @@ -13,7 +13,7 @@ <%= link_to @email.commentable.title, comment_url(@email.reply.id), style: "color: #2895F1; text-decoration:none;" %>

-
+
<%= simple_format sanitize_and_auto_link(@email.reply.body), {}, sanitize: false %>