I think this should be made clearer by first collecting the publicly visible featured items and then iterating over them, generating the links. E.g.

```
  content_tag(:ul, class: 'featured-items') do
    publicly_visible_items(items).collect do |item|
      content_tag(:li, link_to_featured_item(item).html_safe)

end