Welcome to mirror list, hosted at ThFree Co, Russian Federation.

emoji_pipeline.rb « pipeline « banzai « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a1b522f4303c4546bf309aedcf52537d12927330 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module Banzai
  module Pipeline
    class EmojiPipeline < BasePipeline
      # These filters will only perform sanitization of the content, preventing
      # XSS, and replace emoji.
      def self.filters
        @filters ||= FilterArray[
          Filter::HtmlEntityFilter,
          Filter::SanitizationFilter,
          Filter::EmojiFilter
        ]
      end
    end
  end
end