original_string: public static function escape($value, array $options = array()) {
          $options = $options + array(
              'encoding' => 'UTF-8',
              'flags' => ENT_QUOTES,
              'double' => false
          );
  
          return htmlentities($value, $options['flags'], $options['encoding'], $options['double']);
      }
code: public static function escape($value, array $options = array()) {
          $options = $options + array(
              'encoding' => 'UTF-8',
              'flags' => ENT_QUOTES,
              'double' => false
          );
  
          return htmlentities($value, $options['flags'], $options['encoding'], $options['double']);
      }
code_tokens: public static function escape ( $ value , array $ options = array ( ) ) { $ options = $ options + array ( 'encoding' => 'UTF-8' , 'flags' => ENT_QUOTES , 'double' => false ) ; return htmlentities ( $ value , $ options [ 'flags' ] , $ options [ 'encoding' ] , $ options [ 'double' ] ) ; }
docstring: Escape a string using the apps encoding.
  
  @param string $value
  @param array $options {
  @type string $encoding  Character encoding set; defaults to UTF-8
  @type int $flags        Encoding flags; defaults to ENT_QUOTES
  @type bool $double      Will double escape existing entities
  }
  @return string
docstring_tokens: Escape a string using the apps encoding .