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
479 B
Plaintext
16 lines
479 B
Plaintext
<div class="row">
|
|
<div class="small-12 medium-9 column">
|
|
<%= back_link_to user_path(@direct_message.receiver) %>
|
|
|
|
<div class="clear"></div>
|
|
|
|
<div class="margin-top">
|
|
<span><strong><%= t("users.direct_messages.show.receiver",
|
|
receiver: @direct_message.receiver.name) %></strong></span>
|
|
</div>
|
|
|
|
<h1><%= @direct_message.title %></h1>
|
|
<p><%= simple_format sanitize_and_auto_link(@direct_message.body), {}, sanitize: false %></p>
|
|
</div>
|
|
</div>
|