lib/breadcrumbs/render/inline.rb in breadcrumbs-0.1.4 vs lib/breadcrumbs/render/inline.rb in breadcrumbs-0.1.5
- old
+ new
@@ -27,16 +27,10 @@
css << "item-#{i}"
options[:class] << " #{css.join(" ")}"
options[:class].gsub!(/^ *(.*?)$/, '\\1')
- text = CGI.escapeHTML(text)
-
- if url
- text = tag(:a, text, options.merge(:href => url))
- else
- text = tag(:span, text, options)
- end
+ wrap_item(url, CGI.escapeHTML(text), options)
end
end
end
end