class HtmlScrubber < Rails::Html::PermitScrubber def initialize super self.tags = Rails::Html::WhiteListSanitizer.allowed_tags + %w[ audio details summary iframe options table tbody td th thead tr video source ] end end