d598e4fd93
Enables frozen for the following: * lib/*.rb * lib/banzai/**/*.rb * lib/bitbucket/**/*.rb * lib/constraints/**/*.rb * lib/container_registry/**/*.rb * lib/declarative_policy/**/*.rb Partially addresses #47424.
18 lines
468 B
Ruby
18 lines
468 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Banzai
|
|
module Pipeline
|
|
class DescriptionPipeline < FullPipeline
|
|
WHITELIST = Banzai::Filter::SanitizationFilter::LIMITED.deep_dup.merge(
|
|
elements: Banzai::Filter::SanitizationFilter::LIMITED[:elements] - %w(pre code img ol ul li)
|
|
)
|
|
|
|
def self.transform_context(context)
|
|
super(context).merge(
|
|
# SanitizationFilter
|
|
whitelist: WHITELIST
|
|
)
|
|
end
|
|
end
|
|
end
|
|
end
|