original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Restore global exclusions.
  
  @since 150821 Adding global exclusion tokenizer.
  
  @param string $html Input HTML code.
  
  @return string HTML code, after restoring exclusions.
docstring_tokens: Restore global exclusions .