gitlab-org--gitlab-foss/lib/banzai/pipeline/emoji_pipeline.rb
Bob Van Landuyt b4c4b48a8c Allow users to set a status
This can be done trough the API for the current user, or on the
profile page.
2018-07-30 15:01:26 +02:00

17 lines
413 B
Ruby

# 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