2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-10-02 00:01:53 -04:00
|
|
|
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
|
2017-02-06 08:45:04 -05:00
|
|
|
end
|
|
|
|
end
|