Commit 3b08f804982e3642b3ed9499bd46e6e50cf9b498
1 parent
6aacd907
Exists in
master
and in
29 other branches
Another unsafe HTML creation
Showing
1 changed file
with
2 additions
and
4 deletions
Show diff stats
app/helpers/tags_helper.rb
... | ... | @@ -29,10 +29,8 @@ module TagsHelper |
29 | 29 | # (pt_BR only). |
30 | 30 | def tag_cloud(tags, tagname_option, url, options = {}) |
31 | 31 | |
32 | - return content_tag('em', _('No tags yet.')) + | |
33 | - ' <a href="' + _('http://en.wikipedia.org/wiki/Tag_%28metadata%29') + | |
34 | - '" target="wptags"><span>(' + | |
35 | - _('What are tags?') + ')</span></a>' if tags.empty? | |
32 | + return content_tag('em', _('No tags yet.') + ' ') + | |
33 | + link_to(content_tag(:span, _('What are tags?')),_('http://en.wikipedia.org/wiki/Tag_%28metadata%29')) if tags.empty? | |
36 | 34 | |
37 | 35 | max_size = options[:max_size] || Cloud::MAX_SIZE |
38 | 36 | min_size = options[:min_size] || Cloud::MIN_SIZE | ... | ... |