Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.
   1  <?php
   2  
   3  declare(strict_types=1);
   4  
   5  namespace OpenSpout\Common\Helper\Escaper;
   6  
   7  /**
   8   * @internal
   9   */
  10  interface EscaperInterface
  11  {
  12      /**
  13       * Escapes the given string to make it compatible with PHP.
  14       *
  15       * @param string $string The string to escape
  16       *
  17       * @return string The escaped string
  18       */
  19      public function escape(string $string): string;
  20  
  21      /**
  22       * Unescapes the given string to make it compatible with PHP.
  23       *
  24       * @param string $string The string to unescape
  25       *
  26       * @return string The unescaped string
  27       */
  28      public function unescape(string $string): string;
  29  }