Class: RailsAdminFeaturedContent::FeaturedContent
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- RailsAdminFeaturedContent::FeaturedContent
- Defined in:
- app/models/rails_admin_featured_content/featured_content.rb
Instance Method Summary collapse
Instance Method Details
#featured_sanitized ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'app/models/rails_admin_featured_content/featured_content.rb', line 7 def featured_sanitized white_list_sanitizer = Rails::Html::WhiteListSanitizer.new white_list_sanitizer.sanitize( self.content, tags: %w(div h1 h2 b u p img section figure figcaption a iframe), attributes: %w(src class alt href allowfullscreen frameborder height width) ).try(:html_safe) end |