Class: Banzai::Pipeline::EmojiPipeline

Inherits:
BasePipeline show all
Defined in:
lib/banzai/pipeline/emoji_pipeline.rb

Class Method Summary collapse

Methods inherited from BasePipeline

html_pipeline, transform_context

Class Method Details

.filtersObject

These filters will only perform sanitization of the content, preventing XSS, and replace emoji.


8
9
10
11
12
13
14
# File 'lib/banzai/pipeline/emoji_pipeline.rb', line 8

def self.filters
  @filters ||= FilterArray[
    Filter::HtmlEntityFilter,
    Filter::SanitizationFilter,
    Filter::EmojiFilter
  ]
end