public function escape_value(string $value, $esc = "'"): string
  {
    return str_replace('%', '\\%', $esc === '"' ?
      str::escape_dquotes($value) :
      str::escape_squotes($value));
  }
public function escape_value(string $value, $esc = "'"): string
  {
    return str_replace('%', '\\%', $esc === '"' ?
      str::escape_dquotes($value) :
      str::escape_squotes($value));
  }
public function escape_value ( string $ value , $ esc = "'" ) : string { return str_replace ( '%' , '\\%' , $ esc === '"' ? str :: escape_dquotes ( $ value ) : str :: escape_squotes ( $ value ) ) ; }
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
Return a string with quotes and percent escaped .