You are here

public function Unescaper::unescapeDoubleQuotedString in Lockr 7.3

Unescapes a double quoted string.

Parameters

string $value A double quoted string:

Return value

string The unescaped string

File

vendor/symfony/yaml/Unescaper.php, line 50

Class

Unescaper
Unescaper encapsulates unescaping rules for single and double-quoted YAML strings.

Namespace

Symfony\Component\Yaml

Code

public function unescapeDoubleQuotedString($value) {
  $callback = function ($match) {
    return $this
      ->unescapeCharacter($match[0]);
  };

  // evaluate the string
  return preg_replace_callback('/' . self::REGEX_ESCAPED_CHARACTER . '/u', $callback, $value);
}