Class: Redmine::WikiFormatting::CommonMark::SanitizationFilter

Inherits:
HTML::Pipeline::SanitizationFilter
  • Object
show all
Includes:
Helpers::URL
Defined in:
lib/redmine/wiki_formatting/common_mark/sanitization_filter.rb

Overview

sanitizes rendered HTML using the Sanitize gem

Constant Summary collapse

RELAXED_PROTOCOL_ATTRS =
{
  "a" => %w(href).freeze,
}.freeze

Instance Method Summary collapse

Methods included from Helpers::URL

#uri_with_link_safe_scheme?, #uri_with_safe_scheme?

Instance Method Details

#allowlistObject



30
31
32
# File 'lib/redmine/wiki_formatting/common_mark/sanitization_filter.rb', line 30

def allowlist
  @allowlist ||= customize_allowlist(super.deep_dup)
end