18 lines
413 B
Ruby
18 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
|