The name `safe_html_with_links` was confusing and could make you think it takes care of making the HTML safe. So I've renamed it in a way that makes it a bit more intuitive that it expects its input to be already sanitized. I've changed `text_with_links` as well so now the two method names complement each other.
16 lines
635 B
Plaintext
16 lines
635 B
Plaintext
<td style="padding-bottom: 20px; padding-left: 10px;">
|
|
|
|
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; font-size: 20px;">
|
|
<%= t("mailers.direct_message_for_sender.title_html",
|
|
receiver: @direct_message.receiver.name) %>
|
|
</p>
|
|
|
|
<h2 style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; font-size: 18px;">
|
|
<%= @direct_message.title %>
|
|
</h2>
|
|
|
|
<div style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
|
|
<%= simple_format sanitize_and_auto_link(@direct_message.body), {}, sanitize: false %>
|
|
</div>
|
|
</td>
|