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(
|
2021-02-24 21:39:15 -05:00
|
|
|
Sanitize::Config.merge(
|
|
|
|
Sanitize::Config::ONEBOX,
|
|
|
|
attributes: Sanitize::Config.merge(
|
|
|
|
Sanitize::Config::ONEBOX[:attributes],
|
|
|
|
'aside' => [:data]
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2019-10-02 00:01:53 -04:00
|
|
|
end
|
2017-02-06 08:45:04 -05:00
|
|
|
end
|
|
|
|
end
|