original_string: public function escape_value(string $value, $esc = "'"): string
    {
      return str_replace('%', '\\%', $esc === '"' ?
        str::escape_dquotes($value) :
        str::escape_squotes($value));
    }
code: public function escape_value(string $value, $esc = "'"): string
    {
      return str_replace('%', '\\%', $esc === '"' ?
        str::escape_dquotes($value) :
        str::escape_squotes($value));
    }
code_tokens: public function escape_value ( string $ value , $ esc = "'" ) : string { return str_replace ( '%' , '\\%' , $ esc === '"' ? str :: escape_dquotes ( $ value ) : str :: escape_squotes ( $ value ) ) ; }
docstring: Return a string with quotes and percent escaped.
  
  ```php
  bbn\x::dump($db->escape_value("My father's job is interesting");
  // (string) My  father\'s  job  is  interesting
  ```
  
  @param string $value The string to escape.
  @param string $esc
  @return string
docstring_tokens: Return a string with quotes and percent escaped .