Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. HeaderUtils.php

function HeaderUtils::unquote

Decodes a quoted string.

If passed an unquoted string that matches the "token" construct (as defined in the HTTP specification), it is passed through verbatim.

1 call to HeaderUtils::unquote()
HeaderUtils::groupParts in vendor/symfony/http-foundation/HeaderUtils.php

File

vendor/symfony/http-foundation/HeaderUtils.php, line 147

Class

HeaderUtils
HTTP header utility functions.

Namespace

Symfony\Component\HttpFoundation

Code

public static function unquote(string $s) : string {
    return preg_replace('/\\\\(.)|"/', '$1', $s);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal