protected function restoreGlobalExclusions($html)
    {
        $html = (string) $html;

        if (!$this->current_global_exclusion_tokens) {
            return $html; // Nothing to restore.
        }
        if (mb_strpos($html, '<htmlc-gxt-') === false) {
            return $html; // Nothing to restore.
        }
        foreach (array_reverse($this->current_global_exclusion_tokens, true) as $_token => $_value) {
            // Must go in reverse order so nested tokens unfold properly.
            $html = str_replace('<htmlc-gxt-'.$_token.' />', $_value, $html);
        } // unset($_token, $_value); // Housekeeping.

        $this->current_global_exclusion_tokens = [];

        return $html;
    }