src/includes/classes/Core/Tokenizer.php
public function &restoreGetString(): string
    {
        if (!$this->tokens || mb_strpos($this->string, '⒯') === false) {
            return $this->string; // Nothing to restore in this case.
        }
        $restore_shortcode_tokens = $this->args['shortcode_unautop_compat']
            && $this->shortcode_unautop_compat_tag_name && in_array('shortcodes', $this->tokenize, true);

        foreach (array_reverse($this->tokens, true) as $_token_id => $_original) {
            // Must go in reverse order so nested tokens unfold properly.
            // If `$restore_shortcode_tokens`, first replace shortcode tokens.

            $_token = '⁅⒯'.$this->id.'⒯'.$_token_id.'⒯⁆'; // Placeholder.

            if ($restore_shortcode_tokens) { // Restoring shortcode tokens in this class instance?
                $this->string = str_replace('['.$this->shortcode_unautop_compat_tag_name.' _is_token=⁅⒯⁆]'.
                                                $_token.// Token inside the shortcode token.
                                            '[/'.$this->shortcode_unautop_compat_tag_name.']', $_original, $this->string);
            }
            $this->string = str_replace($_token, $_original, $this->string); // Always.
        } // unset($_token_id, $_token, $_original); // Housekeeping.

        return $this->string;
    }
public function &restoreGetString(): string
    {
        if (!$this->tokens || mb_strpos($this->string, '⒯') === false) {
            return $this->string; // Nothing to restore in this case.
        }
        $restore_shortcode_tokens = $this->args['shortcode_unautop_compat']
            && $this->shortcode_unautop_compat_tag_name && in_array('shortcodes', $this->tokenize, true);

        foreach (array_reverse($this->tokens, true) as $_token_id => $_original) {
            // Must go in reverse order so nested tokens unfold properly.
            // If `$restore_shortcode_tokens`, first replace shortcode tokens.

            $_token = '⁅⒯'.$this->id.'⒯'.$_token_id.'⒯⁆'; // Placeholder.

            if ($restore_shortcode_tokens) { // Restoring shortcode tokens in this class instance?
                $this->string = str_replace('['.$this->shortcode_unautop_compat_tag_name.' _is_token=⁅⒯⁆]'.
                                                $_token.// Token inside the shortcode token.
                                            '[/'.$this->shortcode_unautop_compat_tag_name.']', $_original, $this->string);
            }
            $this->string = str_replace($_token, $_original, $this->string); // Always.
        } // unset($_token_id, $_token, $_original); // Housekeeping.

        return $this->string;
    }
Restore token originals.

@since 150424 Initial release.

@return string After restoring tokens.