diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index d0f133a..5a6a812 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1183,10 +1183,10 @@ module ApplicationHelper end controller_target = suggestion.suggestion_type == 'Person' ? :friends : :memberships - profiles << link_to(" +#{suggestion.profile_connections.count - 4}", :controller => controller_target, :action => :connections, :id => suggestion.suggestion_id) if suggestion.profile_connections.count > 4 + profiles << link_to(" +#{suggestion.profile_connections.count - 4}".html_safe, :controller => controller_target, :action => :connections, :id => suggestion.suggestion_id) if suggestion.profile_connections.count > 4 if profiles.present? - content_tag(:div, profiles.join , :class => 'profile-connections') + content_tag(:div, profiles.safe_join , :class => 'profile-connections') else '' end diff --git a/app/views/shared/_profile_connections.html.erb b/app/views/shared/_profile_connections.html.erb index 9fa78e4..92d5101 100644 --- a/app/views/shared/_profile_connections.html.erb +++ b/app/views/shared/_profile_connections.html.erb @@ -4,7 +4,7 @@