Class: Banzai::Pipeline::DescriptionPipeline

Inherits:
FullPipeline show all
Defined in:
lib/banzai/pipeline/description_pipeline.rb

Direct Known Subclasses

BroadcastMessagePipeline

Constant Summary collapse

WHITELIST =
Banzai::Filter::SanitizationFilter::LIMITED.deep_dup.merge(
  elements: Banzai::Filter::SanitizationFilter::LIMITED[:elements] - %w(pre code img ol ul li)
)

Class Method Summary collapse

Class Method Details

.transform_context(context) ⇒ Object


10
11
12
13
14
15
# File 'lib/banzai/pipeline/description_pipeline.rb', line 10

def self.transform_context(context)
  super(context).merge(
    # SanitizationFilter
    whitelist: WHITELIST
  )
end