lib/breadcrumbs/render/list.rb in breadcrumbs-0.1.0 vs lib/breadcrumbs/render/list.rb in breadcrumbs-0.1.1
- old
+ new
@@ -22,10 +22,10 @@
css << "first" if i == 0
css << "last" if i == size - 1
css << "item-#{i}"
text, url, options = *item
-
+ text = CGI.escapeHTML(text)
text = tag(:a, text, options.merge(:href => url)) if url
tag(:li, text, :class => css.join(" "))
end
end