Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removed needless html_escape calls

  • Loading branch information...
commit f7edb403933c4034817ce10a11dcd934c529de3b 1 parent b512f50
@dimko dimko authored
View
6 app/helpers/application_helper.rb
@@ -26,9 +26,9 @@ def next_page(collection)
end
def search_posts_title
- (params[:q].blank? ? I18n.t('txt.recent_posts', :default => 'Recent Posts') : I18n.t('txt.searching_for', :default => 'Searching for') + " '#{h params[:q]}'").tap do |title|
- title << " " + I18n.t('txt.by_user', :default => 'by %{user}', :user => h(@user.display_name)) if @user
- title << " " + I18n.t('txt.in_forum', :default => 'in %{forum}', :forum => h(@forum.name)) if @forum
+ (params[:q].blank? ? I18n.t('txt.recent_posts', :default => 'Recent Posts') : I18n.t('txt.searching_for', :default => 'Searching for') + " '#{params[:q]}'").tap do |title|
+ title << " " + I18n.t('txt.by_user', :default => 'by %{user}', :user => @user.display_name) if @user
+ title << " " + I18n.t('txt.in_forum', :default => 'in %{forum}', :forum => @forum.name) if @forum
end
end
View
2  app/views/posts/index.html.erb
@@ -4,7 +4,7 @@
<% if params[:q].blank? %>
<%= @page_title %>
<% else %>
- <%= t 'txt.search_results_for_searchterm', :default => "Search results for '%{searchterm}'", :searchterm => h(params[:q]) %>
+ <%= t 'txt.search_results_for_searchterm', :default => "Search results for '%{searchterm}'", :searchterm => params[:q] %>
<% end %>
</h1>
<p class="subtitle">
Please sign in to comment.
Something went wrong with that request. Please try again.