discourse/lib/onebox/discourse_onebox_sanitize_c...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
428 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Onebox
class DiscourseOneboxSanitizeConfig
module Config
DISCOURSE_ONEBOX ||=
Sanitize::Config.freeze_config(
Sanitize::Config.merge(
Sanitize::Config::ONEBOX,
attributes: Sanitize::Config.merge(
Sanitize::Config::ONEBOX[:attributes],
'aside' => [:data]
)
)
)
end
end
end