From 3b08f804982e3642b3ed9499bd46e6e50cf9b498 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 2 May 2013 13:44:18 -0300 Subject: [PATCH] Another unsafe HTML creation --- app/helpers/tags_helper.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/helpers/tags_helper.rb b/app/helpers/tags_helper.rb index 6139018..b7bc195 100644 --- a/app/helpers/tags_helper.rb +++ b/app/helpers/tags_helper.rb @@ -29,10 +29,8 @@ module TagsHelper # (pt_BR only). def tag_cloud(tags, tagname_option, url, options = {}) - return content_tag('em', _('No tags yet.')) + - ' (' + - _('What are tags?') + ')' if tags.empty? + return content_tag('em', _('No tags yet.') + ' ') + + link_to(content_tag(:span, _('What are tags?')),_('http://en.wikipedia.org/wiki/Tag_%28metadata%29')) if tags.empty? max_size = options[:max_size] || Cloud::MAX_SIZE min_size = options[:min_size] || Cloud::MIN_SIZE -- libgit2 0.21.2