- ELEMENTS_REMAP =
{
'prompt' => 'div',
'simpleBlock' => 'div',
'simpleInline' => 'span',
'atomicBlock' => 'div',
'atomicInline' => 'span'
}.freeze
- PROTOCOLS =
['http', 'https', :relative].freeze
- FILTER_TAGS =
%w[iframe object embed].freeze
- CONFIG =
{
elements: FILTER_TAGS,
protocols:
{
'iframe' => { 'src' => PROTOCOLS },
'object' => { 'src' => PROTOCOLS, 'data' => PROTOCOLS },
'embed' => { 'src' => PROTOCOLS }
}.freeze,
attributes:
{
'object' => %w[src width height style data type classid codebase],
'embed' => %w[name src type allowfullscreen pluginspage wmode
allowscriptaccess width height],
'iframe' => %w[src width height name align frameborder scrolling sandbox
allowfullscreen webkitallowfullscreen mozallowfullscreen
allow] }.freeze
}.freeze