Module: IC

Extended by:
IS::DSL
Defined in:
lib/inat-channel/api.rb,
lib/inat-channel/data.rb,
lib/inat-channel/icons.rb,
lib/inat-channel/config.rb,
lib/inat-channel/facade.rb,
lib/inat-channel/logger.rb,
lib/inat-channel/message.rb,
lib/inat-channel/version.rb,
lib/inat-channel/telegram.rb,
lib/inat-channel/template.rb,
lib/inat-channel/data_types.rb,
lib/inat-channel/data_convert.rb

Constant Summary collapse

VERSION =
INatChannel::VERSION
SANITIZE_HTML_CONFIG =
{
  elements: [ 'b', 'strong', 'i', 'em', 'u', 's', 'strike', 'del', 'a', 'code', 'pre', 'tg-spoiler', 'blockquote' ],
  attributes: { 'a' => [ 'href' ] },
  protocols: { 'a' => { 'href' => [ 'http', 'https', 'mailto', 'tg' ] } },
  remove_contents: [ 'script', 'style' ]
}
SANITIZE_TEXT_CONFIG =
{
  elements: [],
  remove_contents: [ 'script', 'style' ]
}