gitlab-org--gitlab-foss/lib/banzai/pipeline/emoji_pipeline.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
413 B
Ruby
Raw Normal View History

# 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