Sha256: 63d5930b225dc5ad9096bc585fcf661200313324cba213ab39f9e3b2377a40c8
Contents?: true
Size: 417 Bytes
Versions: 62
Compression:
Stored size: 417 Bytes
Contents
# frozen_string_literal: true module Decidim module Comments # Use this class as a scrubber to sanitize user input. # https://stackoverflow.com/a/35073814/2110884. class UserInputScrubber < Rails::Html::PermitScrubber def initialize super self.tags = custom_allowed_tags end private def custom_allowed_tags %w(p blockquote) end end end end
Version data entries
62 entries across 62 versions & 1 rubygems