They are escaped properly without the h() call, and doing that just double-escapes them
<% content_for :heading do %>
<div id="userinformation">
<%= user_image @entry.user %>
- <h2><%= link_to t(".user_title", :user => h(@entry.user.display_name)), :action => :index %></h2>
+ <h2><%= link_to t(".user_title", :user => @entry.user.display_name), :action => :index %></h2>
<p><%= rss_link_to :action => :rss, :display_name => @entry.user.display_name %></p>
</div>
<% end %>
<% content_for :heading do %>
- <h2><%= t(".send_message_to_html", :name => link_to(h(@message.recipient.display_name), user_path(@message.recipient))) %></h2>
+ <h2><%= t(".send_message_to_html", :name => link_to(@message.recipient.display_name, user_path(@message.recipient))) %></h2>
<% end %>
<%= error_messages_for "message" %>
-<% @title = t(".title", :name => h(@user.display_name)) %>
+<% @title = t(".title", :name => @user.display_name) %>
<% content_for :heading do %>
<h1><%= t(".heading_html", :name => link_to(@user.display_name, user_path(@user))) %></h1>
<% end %>
<% unless @user_blocks.empty? %>
<%= render :partial => "blocks", :locals => { :show_revoke_link => can?(:revoke, UserBlock), :show_user_name => true, :show_creator_name => false } %>
<% else %>
-<p><%= t ".empty", :name => h(@user.display_name) %></p>
+<p><%= t ".empty", :name => @user.display_name %></p>
<% end %>
-<% @title = t ".title", :name => h(@user_block.user.display_name) %>
+<% @title = t ".title", :name => @user_block.user.display_name %>
<% content_for :heading do %>
<h1><%= t(".heading_html",
:name => link_to(@user_block.user.display_name,
<%= f.error_messages %>
<p>
- <%= f.label :reason, t(".reason", :name => h(@user_block.user.display_name)) %><br />
+ <%= f.label :reason, t(".reason", :name => @user_block.user.display_name) %><br />
<%= richtext_area :user_block, :reason, :cols => 80, :rows => 20, :format => @user_block.reason_format %>
</p>
<p>
-<% @title = t ".title", :name => h(@user.display_name) %>
+<% @title = t ".title", :name => @user.display_name %>
<% content_for :heading do %>
<h1><%= t(".heading_html",
:name => link_to(@user.display_name,
<% content_for :heading do %>
- <h1><%= t ".heading", :user => h(@not_found_user) %></h1>
+ <h1><%= t ".heading", :user => @not_found_user %></h1>
<% end %>
-<p><%= t ".body", :user => h(@not_found_user) %></p>
+<p><%= t ".body", :user => @not_found_user %></p>