code: def getconfigvar_escaped(config: configparser.ConfigParser,
                           section: str,
                           key: str) -> Optional[str]:
      
      value = config.get(section, key)
      # noinspection PyDeprecation
      return cgi.escape(value) if value is not None else None
docs: Returns a CGI-escaped version of the value read from an INI file using
      :class:`ConfigParser`, or ``None``.