blob: 8f8ce1cbd4181c1fe321634be86c7f357a9b4d9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# frozen_string_literal: true
module Banzai
module Pipeline
class DescriptionPipeline < FullPipeline
ALLOWLIST = 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
allowlist: ALLOWLIST
)
end
end
end
end
|