public static function process(string $content, $config = null): string
    {
        $configInstance = static::createConfig($config);
        $configInstance->autoFinalize = false;

        return \HTMLPurifier::instance($configInstance)->purify($content);
    }