mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-07-23 02:54:40 +00:00
19 lines
451 B
Ruby
19 lines
451 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::SanitizeLinkFilter,
|
|
Filter::EmojiFilter
|
|
]
|
|
end
|
|
end
|
|
end
|
|
end
|