remove a few unnecessary html_safe

This commit is contained in:
jomo
2016-05-19 20:23:34 +02:00
parent f633b49eca
commit 8beb2d39db
2 changed files with 6 additions and 2 deletions

View File

@@ -102,5 +102,9 @@
</tbody>
</table>
About:<br>
<%= @user.about.blank? ? "<span class=\"no-about\">nothing</span>".html_safe : render_md(@user.about).html_safe %>
<% if @user.about.blank? %>
<span class="no-about">nothing</span>
<% else %>
<%= render_md(@user.about).html_safe %>
<% end %>
</div>