You are here

public function TokenizerEscaping::escapeUnicodeAndNewLine in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/css-selector/Parser/Tokenizer/TokenizerEscaping.php \Symfony\Component\CssSelector\Parser\Tokenizer\TokenizerEscaping::escapeUnicodeAndNewLine()

Parameters

string $value:

Return value

string

File

vendor/symfony/css-selector/Parser/Tokenizer/TokenizerEscaping.php, line 54

Class

TokenizerEscaping
CSS selector tokenizer escaping applier.

Namespace

Symfony\Component\CssSelector\Parser\Tokenizer

Code

public function escapeUnicodeAndNewLine($value) {
  $value = preg_replace($this->patterns
    ->getNewLineEscapePattern(), '', $value);
  return $this
    ->escapeUnicode($value);
}