```ruby
module Cosme
  module Helpers
    def cosmeticize
      Cosme.all.map do |cosmetic|
        content = cosmetic[:render] ? render(cosmetic[:render]) : render
        content_tag(:div, nil, class: 'cosmetic', data: cosmetic.except(:render).merge(content: content))
      end.join.html_safe
    end
  end
end
```

Convert data-content to html escape
user
```ruby
module Cosme
  module Helpers
    def cosmeticize
      Cosme.all.map do |cosmetic|
        content = cosmetic[:render] ? render(cosmetic[:render]) : render
        content_tag(:div, nil, class: 'cosmetic', data: cosmetic.except(:render).merge(content: "#{content}"))
      end.join.html_safe
    end
  end
end
```
assistant